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-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 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.EXE is a shell, same as

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 - Observe the absence

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... - Enter ping -t

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 snip 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-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:

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 snip 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

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 and the command

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:

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 snip Getting a PID using kill just takes too long. -END Original Message- pkill from the procps package might mitigate the

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 2. Run `ping -t

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 your_classpath java_opts path.to.main.line function finalize() { echo 'Terminating Application' kill 0 }

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.bat 2. Run `ping -t

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 wrote:

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 using the

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'm terribly

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 snapshot

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

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

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` file - OK

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_GROUP

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

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 Cygwin's use of

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

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: Nothing

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 the command prompt

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 it with Ctrl+C