RE: CTRL-C not working in sh login mode?

2015-11-16 Thread Benjamin Cao
-Original Message- From: Benjamin Cao Sent: Friday, November 13, 2015 3:46 PM To: 'cygwin@cygwin.com' Subject: CTRL-C not working in sh login mode? Hi, We invoke a shell using a *.bat file doing sh --login. We have discovered that when wanting to kill a long running process

CTRL-C not working in sh login mode?

2015-11-13 Thread Benjamin Cao
Hi, We invoke a shell using a *.bat file doing sh --login. We have discovered that when wanting to kill a long running process with CTRL-C, it does not work. Is this expected behavior? I've found that to be the same even if I am doing bash --login -i in my *.bat file. Any guidance would be g

Re: ctrl-c not working

2014-09-19 Thread Gery .
ctrl-d doesn't work? Sent from my iRon On Sep 19, 2014, at 17:51, "Thomas Schweikle" wrote: Having following scripts: bin/tc: --- #!/usr/bin/bash host="" loop=0 conf=default port=22 user=$USERNAME cssh=1 cping=1 recon=0 while [ -n "$1" ]; do case "$1" in -f) conf="$2"; shift ;;

ctrl-c not working

2014-09-19 Thread Thomas Schweikle
Having following scripts: bin/tc: --- #!/usr/bin/bash host="" loop=0 conf=default port=22 user=$USERNAME cssh=1 cping=1 recon=0 while [ -n "$1" ]; do case "$1" in -f) conf="$2"; shift ;; -h) host="$2"; shift ;; -l) loop=1;; -nping) cping=0

Re: 1.7.28: Ctrl-C not working reliably

2014-04-06 Thread Christopher Faylor
On Sat, Apr 05, 2014 at 04:43:27PM -0400, Larry Hall (Cygwin) wrote: >On 4/4/2014 3:35 PM, Ivan Todoroski wrote: >> Cygwin DLL 1.7.28 32-bit >> Windows 8.1 64-bit (build 6.3.9600) >> >> *Steps to reproduce* >> 1) Open Cygwin bash prompt >> 2) Type: ssh blargh # or any non-existent host >> 3) Press

Re: 1.7.28: Ctrl-C not working reliably

2014-04-06 Thread Max Polk
On 4/5/2014 4:43 PM, Larry Hall (Cygwin) wrote: On 4/4/2014 3:35 PM, Ivan Todoroski wrote: 2) Type: ssh blargh # or any non-existent host 3) Press Ctrl-C immediately after that On my machine, the Ctrl-C doesn't stop SSH from trying to look up the non-existent host, it keeps going until it give

Re: 1.7.28: Ctrl-C not working reliably

2014-04-05 Thread Larry Hall (Cygwin)
On 4/4/2014 3:35 PM, Ivan Todoroski wrote: Cygwin DLL 1.7.28 32-bit Windows 8.1 64-bit (build 6.3.9600) *Steps to reproduce* 1) Open Cygwin bash prompt 2) Type: ssh blargh # or any non-existent host 3) Press Ctrl-C immediately after that On my machine, the Ctrl-C doesn't stop SSH from trying t

RE: 1.7.28: Ctrl-C not working reliably

2014-04-05 Thread Ivan Todoroski
Max Polk wrote on Saturday, April 5, 2014 16:50 > > On 4/4/2014 3:35 PM, Ivan Todoroski wrote: > > On my machine, the Ctrl-C doesn't stop SSH from trying to ... > > I believe console applications may require I/O to/from stdin/stdout/stderr > for Control-C (or even Control-S / Control-Q for flow c

Re: 1.7.28: Ctrl-C not working reliably

2014-04-05 Thread Max Polk
On 4/4/2014 3:35 PM, Ivan Todoroski wrote: On my machine, the Ctrl-C doesn't stop SSH from trying to ... I believe console applications may require I/O to/from stdin/stdout/stderr for Control-C (or even Control-S / Control-Q for flow control) to be noticed. In that period of time when there

1.7.28: Ctrl-C not working reliably

2014-04-04 Thread Ivan Todoroski
Cygwin DLL 1.7.28 32-bit Windows 8.1 64-bit (build 6.3.9600) *Steps to reproduce* 1) Open Cygwin bash prompt 2) Type: ssh blargh # or any non-existent host 3) Press Ctrl-C immediately after that On my machine, the Ctrl-C doesn't stop SSH from trying to look up the non-existent host, it keeps goi

Re: Ctrl-C not working in snapshot

2013-01-14 Thread Thomas Wolff
Am 13.01.2013 18:58, schrieb Thomas Wolff: When I tried the recent snapshot (2013-01-11) it turned out that Ctrl-C does not work anymore to interrupt a JVM program. There had been a similar discussion last year (http://cygwin.com/ml/cygwin/2012-07/msg00185.html) but it does not seem to be the s

Ctrl-C not working in snapshot

2013-01-13 Thread Thomas Wolff
When I tried the recent snapshot (2013-01-11) it turned out that Ctrl-C does not work anymore to interrupt a JVM program. There had been a similar discussion last year (http://cygwin.com/ml/cygwin/2012-07/msg00185.html) but it does not seem to be the same problem; in contrast to previous symptom

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-07 Thread Corinna Vinschen
On Aug 7 18:21, Andrey Repin wrote: > Greetings, Corinna Vinschen! > > >> But I still need to see a practical example of > >> running a M$ program like ping and stopping it with Ctrl+C > >> without CMD (or another shell). > > > Why don't you just try it? On W7: > > Start Menu ->> Run... -> Ent

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-07 Thread Andrey Repin
Greetings, Corinna Vinschen! >> But I still need to see a practical example of >> running a M$ program like ping and stopping it with Ctrl+C >> without CMD (or another shell). > Why don't you just try it? On W7: Start Menu ->> Run... -> Enter "ping -t cygwin.com" -> Start Task Manager ->> Obser

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-07 Thread Corinna Vinschen
On Aug 7 12:06, marco atzeri wrote: > On 8/7/2012 10:20 AM, Andrey Repin wrote: > >Greetings, marco atzeri! > > > >>a "windows console terminal" is cmd.exe, IMHO. > > > >No. > > > >>There are no other console in windows as standard installation. > > > >You're confusing terminal with shell. > >CMD.

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-07 Thread marco atzeri
On 8/7/2012 10:20 AM, Andrey Repin wrote: Greetings, marco atzeri! a "windows console terminal" is cmd.exe, IMHO. No. There are no other console in windows as standard installation. You're confusing terminal with shell. CMD.EXE is a shell, same as BASH. Console is a ... well, console. -

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-07 Thread Andrey Repin
Greetings, marco atzeri! > a "windows console terminal" is cmd.exe, IMHO. No. > There are no other console in windows as standard installation. You're confusing terminal with shell. CMD.EXE is a shell, same as BASH. Console is a ... well, console. -- WBR, Andrey Repin (anrdae...@freemail.ru)

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Earnie Boyd
On Fri, Aug 3, 2012 at 2:51 PM, Marcin Kielar wrote: > 2012-08-03 18:23, Christopher Faylor: > >> I've uploaded a snapshot which should fix this issue. > > > Confirmed to be working on snapshot 20120803: > > 1. Ctrl+C breaks ping loop - OK > 2. Ctrl+C breaks Java process started through a `bat` fil

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Marcin Kielar
2012-08-03 18:23, Christopher Faylor: I've uploaded a snapshot which should fix this issue. Confirmed to be working on snapshot 20120803: 1. Ctrl+C breaks ping loop - OK 2. Ctrl+C breaks Java process started through a `bat` file - OK It's likely that we will now hear from the other contingen

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Roger K. Wells
On 08/03/2012 12:23 PM, Christopher Faylor wrote: On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: Steps to reproduce: 1. Start cygwin using cygwin.bat 2. Run `ping -t google.com` 3. Try breaking it with Ctrl+C Expected behaviur: The ping breaks execution and the command prompt i

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Christopher Faylor
On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: >Steps to reproduce: > >1. Start cygwin using cygwin.bat >2. Run `ping -t google.com` >3. Try breaking it with Ctrl+C > >Expected behaviur: >The ping breaks execution and the command prompt is shown and available I've uploaded a snapsh

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Christopher Faylor
On Fri, Aug 03, 2012 at 04:07:39PM +0200, Corinna Vinschen wrote: >On Aug 3 09:57, Christopher Faylor wrote: >>This thread has it all. Affronted user, useless pile on, and now we >>start to drift away from the actual subject. >> >>It's a little early here for popcorn but I'm tempted anyway. > >I'

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Corinna Vinschen
On Aug 3 09:57, Christopher Faylor wrote: > On Fri, Aug 03, 2012 at 03:51:30PM +0200, marco atzeri wrote: > [...] > >a "windows console terminal" is cmd.exe, IMHO. > >There are no other console in windows as standard installation. No, no, three times no. Cmd.exe is just a console application usi

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Christopher Faylor
On Fri, Aug 03, 2012 at 09:57:16AM -0400, Christopher Faylor wrote: >On Fri, Aug 03, 2012 at 03:51:30PM +0200, marco atzeri wrote: >>On 8/3/2012 3:43 PM, Earnie Boyd wrote: >>> On Thu, Aug 2, 2012 at 7:00 PM, Christopher Faylor wrote: On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wro

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Earnie Boyd
On Fri, Aug 3, 2012 at 9:51 AM, marco atzeri wrote: > On 8/3/2012 3:43 PM, Earnie Boyd wrote: >> >> On Thu, Aug 2, 2012 at 7:00 PM, Christopher Faylor wrote: >>> >>> On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: Steps to reproduce: 1. Start cygwin using cygwin.b

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread K Stahl
OK, I've found my example on how to resolve this issue: Create a bash shell script and do the following: #!/bin/bash # Change the following to suit your application needs. java -cp path.to.main.line & function finalize() { echo 'Terminating Application' kill 0 } trap finalize SIGINT

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Christopher Faylor
On Fri, Aug 03, 2012 at 03:51:30PM +0200, marco atzeri wrote: >On 8/3/2012 3:43 PM, Earnie Boyd wrote: >> On Thu, Aug 2, 2012 at 7:00 PM, Christopher Faylor wrote: >>> On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: Steps to reproduce: 1. Start cygwin using cygwin.bat

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Christopher Faylor
On Fri, Aug 03, 2012 at 08:57:28AM -0400, Roger K. Wells wrote: >On 08/03/2012 08:48 AM, Nellis, Kenneth wrote: >> -Original Message- >> From: Roger K. Wells >> >> Getting a PID & using kill just takes too long. >> -END Original Message- >> >> pkill from the procps package might mi

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread marco atzeri
On 8/3/2012 3:43 PM, Earnie Boyd wrote: On Thu, Aug 2, 2012 at 7:00 PM, Christopher Faylor wrote: On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: Steps to reproduce: 1. Start cygwin using cygwin.bat 2. Run `ping -t google.com` 3. Try breaking it with Ctrl+C Expected behaviur: T

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Earnie Boyd
On Thu, Aug 2, 2012 at 7:00 PM, Christopher Faylor wrote: > On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: >>Steps to reproduce: >> >>1. Start cygwin using cygwin.bat >>2. Run `ping -t google.com` >>3. Try breaking it with Ctrl+C >> >>Expected behaviur: >>The ping breaks execution a

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Roger K. Wells
On 08/03/2012 08:48 AM, Nellis, Kenneth wrote: -Original Message- From: Roger K. Wells Getting a PID & using kill just takes too long. -END Original Message- pkill from the procps package might mitigate the pain. --Ken Nellis that too is a work around. The point here is what is

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Roger K. Wells
On 08/02/2012 07:03 PM, Daniel Colascione wrote: On 8/2/2012 4:00 PM, Christopher Faylor wrote: On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: Steps to reproduce: 1. Start cygwin using cygwin.bat 2. Run `ping -t google.com` 3. Try breaking it with Ctrl+C Expected behaviur: The

RE: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-03 Thread Nellis, Kenneth
-Original Message- From: Roger K. Wells Getting a PID & using kill just takes too long. -END Original Message- pkill from the procps package might mitigate the pain. --Ken Nellis

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-02 Thread Christopher Faylor
On Thu, Aug 02, 2012 at 04:03:20PM -0700, Daniel Colascione wrote: >On 8/2/2012 4:00 PM, Christopher Faylor wrote: >> On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: >>> Steps to reproduce: >>> >>> 1. Start cygwin using cygwin.bat >>> 2. Run `ping -t google.com` >>> 3. Try breaking i

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-02 Thread Daniel Colascione
On 8/2/2012 4:00 PM, Christopher Faylor wrote: > On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: >> Steps to reproduce: >> >> 1. Start cygwin using cygwin.bat >> 2. Run `ping -t google.com` >> 3. Try breaking it with Ctrl+C >> >> Expected behaviur: >> The ping breaks execution and th

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-02 Thread Christopher Faylor
On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote: >Steps to reproduce: > >1. Start cygwin using cygwin.bat >2. Run `ping -t google.com` >3. Try breaking it with Ctrl+C > >Expected behaviur: >The ping breaks execution and the command prompt is shown and available > >Actual behaviour: >N

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-02 Thread Roger K. Wells
On 08/02/2012 05:21 PM, Daniel Colascione wrote: On 8/2/2012 2:02 PM, Roger K. Wells wrote: On 08/02/2012 04:26 PM, Daniel Colascione wrote: On 8/2/2012 12:32 PM, Marcin Kielar wrote: Steps to reproduce: 1. Start cygwin using cygwin.bat 2. Run `ping -t google.com` 3. Try breaking it with Ctrl

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-02 Thread Daniel Colascione
On 8/2/2012 2:02 PM, Roger K. Wells wrote: > On 08/02/2012 04:26 PM, Daniel Colascione wrote: >> On 8/2/2012 12:32 PM, Marcin Kielar wrote: >>> Steps to reproduce: >>> >>> 1. Start cygwin using cygwin.bat >>> 2. Run `ping -t google.com` >>> 3. Try breaking it with Ctrl+C >> This problem arises from

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-02 Thread Roger K. Wells
On 08/02/2012 04:26 PM, Daniel Colascione wrote: On 8/2/2012 12:32 PM, Marcin Kielar wrote: Steps to reproduce: 1. Start cygwin using cygwin.bat 2. Run `ping -t google.com` 3. Try breaking it with Ctrl+C This problem arises from Cygwin's use of CREATE_NEW_PROCESS_GROUP. From MSDN: "When a pro

Re: Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-02 Thread Daniel Colascione
On 8/2/2012 12:32 PM, Marcin Kielar wrote: > Steps to reproduce: > > 1. Start cygwin using cygwin.bat > 2. Run `ping -t google.com` > 3. Try breaking it with Ctrl+C This problem arises from Cygwin's use of CREATE_NEW_PROCESS_GROUP. From MSDN: "When a process is created with CREATE_NEW_PROCESS_GR

Ctrl+C not working with windows programs in Cygwin 1.7.16

2012-08-02 Thread Marcin Kielar
Steps to reproduce: 1. Start cygwin using cygwin.bat 2. Run `ping -t google.com` 3. Try breaking it with Ctrl+C Expected behaviur: The ping breaks execution and the command prompt is shown and available Actual behaviour: Nothing happens, ping loops until killed with `/usr/bin/kill -f PID` Vari

Re: ctrl-c not working during bash command line editing

2012-03-02 Thread Scott McCaskill
Confirmed, the snapshot build appears to be working for me too. Thanks! On Fri, Mar 2, 2012 at 1:57 PM, Kitchens wrote: > I just ran the snapshot build, and CTRL+C appears to be working > properly in /dev/consX > > -- > Kitchens > . > > -- > Problem reports:       http://cygwin.com/problems.html

Re: ctrl-c not working during bash command line editing

2012-03-02 Thread Kitchens
I just ran the snapshot build, and CTRL+C appears to be working properly in /dev/consX -- Kitchens . -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/

Re: ctrl-c not working during bash command line editing

2012-03-02 Thread Corinna Vinschen
On Mar 2 12:10, Corinna Vinschen wrote: > On Mar 2 11:18, Corinna Vinschen wrote: > > On Mar 1 19:22, Kitchens wrote: > > > I've noticed this as well, and it seems to be a difference between > > > /dev/consX and /dev/ptyX ttys. Mintty seems to work fine, whereas > > > cmd.exe or Console2 (basica

Re: ctrl-c not working during bash command line editing

2012-03-02 Thread Corinna Vinschen
On Mar 2 11:18, Corinna Vinschen wrote: > On Mar 1 19:22, Kitchens wrote: > > I've noticed this as well, and it seems to be a difference between > > /dev/consX and /dev/ptyX ttys. Mintty seems to work fine, whereas > > cmd.exe or Console2 (basically a cmd wrapper) cannot CTRL+C on the > > command

Re: ctrl-c not working during bash command line editing

2012-03-02 Thread Corinna Vinschen
On Mar 1 19:22, Kitchens wrote: > I've noticed this as well, and it seems to be a difference between > /dev/consX and /dev/ptyX ttys. Mintty seems to work fine, whereas > cmd.exe or Console2 (basically a cmd wrapper) cannot CTRL+C on the > command line to abort it. Ctrl+C does, however, issue a SI

Re: ctrl-c not working during bash command line editing

2012-03-01 Thread Kitchens
I've noticed this as well, and it seems to be a difference between /dev/consX and /dev/ptyX ttys. Mintty seems to work fine, whereas cmd.exe or Console2 (basically a cmd wrapper) cannot CTRL+C on the command line to abort it. Ctrl+C does, however, issue a SIGINT for a running process. This issue h

ctrl-c not working during bash command line editing

2012-03-01 Thread Scott McCaskill
I use vi mode (set -o vi) in bash. A couple of days ago I updated my cygwin installation and now I'm no longer able to use ctrl-c to abort command line editing. Specifically, while typing a command or editing a previous command from the history, it used to be possible to discard the command text

Re: A workaround for CTRL-C not working on Windows console apps in ptys

2010-05-20 Thread Scott Wells
Scott Wells hotmail.com> writes: > I'll keep playing with this but, assuming it works as it seems to, this > is great! Okay, scratch that...while the simple build seemed to be working properly when run through the shell script, I tried running a Swing-based sample program and CTRL-C killed the t

Re: A workaround for CTRL-C not working on Windows console apps in ptys

2010-05-20 Thread Scott Wells
Scott Wells hotmail.com> writes: > Hi. I'm a longtime cygwin user (since it was gnu-win32) who has struggled to > solve one particular long-standing disconnect between cygwin and native Win32 > command-line utilities, notably that unless you're using a cygwin shell from a > cmd.exe window (or to

A workaround for CTRL-C not working on Windows console apps in ptys

2010-05-20 Thread Scott Wells
Hi. I'm a longtime cygwin user (since it was gnu-win32) who has struggled to solve one particular long-standing disconnect between cygwin and native Win32 command-line utilities, notably that unless you're using a cygwin shell from a cmd.exe window (or tools like Console2 that effectively co-opt t

Regression: (was Re: Ctrl-C not working as well as on Linux)

2005-07-28 Thread Linda W
Christopher Faylor wrote: According to Alex Goldman on 7/21/2005 2:49 AM: On Linux, after I start a program that consumes 100% of CPU time, I can usually terminate it just by typing Ctrl-C. This is very convenient to me as a developer. However, using Cygwin in the same situation, the shell

Re: Ctrl-C not working as well as on Linux

2005-07-21 Thread Igor Pechtchanski
On Thu, 21 Jul 2005, Alex Goldman wrote: > On Linux, after I start a program that consumes 100% of CPU time, I > can usually terminate it just by typing Ctrl-C. This is very > convenient to me as a developer. However, using Cygwin in the same > situation, the shell becomes "bash (Not Responding)",

Re: Ctrl-C not working as well as on Linux

2005-07-21 Thread Alex Goldman
My tty settings are fine. I run Rxvt by calling C: chdir C:\cygwin\bin set CYGWIN=codepage:oem tty binmode title rxvt -sl 1000 -e bash --login -i Looking into this more closely, I noticed that the problem occurs for programs compiled using the free MSVC++ Toolkit 2003, but not GCC. I think you

Re: Ctrl-C not working as well as on Linux

2005-07-21 Thread Christopher Faylor
On Thu, Jul 21, 2005 at 06:06:39AM -0600, Eric Blake wrote: >According to Alex Goldman on 7/21/2005 2:49 AM: >>On Linux, after I start a program that consumes 100% of CPU time, I can >>usually terminate it just by typing Ctrl-C. This is very convenient to >>me as a developer. However, using Cygwi

Re: Ctrl-C not working as well as on Linux

2005-07-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Alex Goldman on 7/21/2005 2:49 AM: > On Linux, after I start a program that consumes 100% of CPU time, I > can usually terminate it just by typing Ctrl-C. This is very > convenient to me as a developer. However, using Cygwin in the same >

Ctrl-C not working as well as on Linux

2005-07-21 Thread Alex Goldman
On Linux, after I start a program that consumes 100% of CPU time, I can usually terminate it just by typing Ctrl-C. This is very convenient to me as a developer. However, using Cygwin in the same situation, the shell becomes "bash (Not Responding)", and I have to invoke the process manager and kill