Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-12-12 Thread erik56d
There is nothing special about the Java program. Might be e.g. public class ShutdownHookTester { public static void main(String[] args) { Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { System.out.println("Cleaning up"); } }); for (int

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-12-12 Thread Aaron Schneider
On 12/12/2012 11:05, erik56d wrote: Hi, being a long-time CygWin fan among Windows users, I was a bit frustrated when I had to revert to cmd.exe in order to have the ShutDown hook in my Java program executed on pressing CTRL-C. So, it seems the problem with CTRL-C still persists? Or, is there a

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-12-12 Thread erik56d
Hi, being a long-time CygWin fan among Windows users, I was a bit frustrated when I had to revert to cmd.exe in order to have the ShutDown hook in my Java program executed on pressing CTRL-C. So, it seems the problem with CTRL-C still persists? Or, is there a solution? I'm running X, i.e. startin

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-08-02 Thread Roger K. Wells
On 07/11/2012 04:07 PM, saltnlight5 wrote: Thanks for the reply "K Stahl", but it didn't work for me. I ran the same Test, then press CTRL+C. But the cygwin terminal did nothing. It did not stop the java process, and it did not print any thing further. I must manually terminate the process by goi

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-12 Thread saltnlight5
Okay, I finally found out what's going on. I used to have an old cygwin installed (not even sure what version) that only has "C:\Cygwin\Cygwin.bat" to start an terminal. This batch file open a terminal that I can run java.exe, and I used to hit CTRL+C to end it (not only that, it will also invoke

RE: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-12 Thread saltnlight5
Thanks for the tips James, however, I tried the lastest snaphost cygwin1-20120708.dll.bz2 it still not working. James Johnston-5 wrote: > >> -Original Message- >> Sent: Wednesday, July 11, 2012 20:07 >> Subject: Re: CTRL+C is not working with java on

RE: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-12 Thread James Johnston
> -Original Message- > Sent: Wednesday, July 11, 2012 20:07 > Subject: Re: CTRL+C is not working with java on latest cygwin 1.7.15 > > > Thanks for the reply "K Stahl", but it didn't work for me. I ran the same Test, > then press CTRL+C. But the cyg

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-12 Thread Earnie Boyd
On Thu, Jul 12, 2012 at 9:02 AM, saltnlight5 wrote: > > @Earnie > What value should I set to CYGWIN that you think it may affect CTRL+C > behavior. I looked at http://cygwin.com/cygwin-ug-net/using-cygwinenv.html > and I don't see any entries that related to CTRL+C. Two people with two differing r

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-12 Thread Aaron Schneider
On 11/07/2012 21:17, K Stahl wrote: Just tested with this against the latest release version (1.7.15) and everything works as expected. Example: public final class Test { public static void main(String[] args) { System.out.println("This shall hang until CTRL-C is pressed...");

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-12 Thread K Stahl
Hmm, I thought this was an issue in a early release of 1.6. Seeing as you have a pretty recent release, I'm still at a loss. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info:

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-12 Thread saltnlight5
@Earnie What value should I set to CYGWIN that you think it may affect CTRL+C behavior. I looked at http://cygwin.com/cygwin-ug-net/using-cygwinenv.html and I don't see any entries that related to CTRL+C. @K Stahl I did print you mine full java -version. See my previous email. Thanks, Zemian E

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread Earnie Boyd
On Wed, Jul 11, 2012 at 4:34 PM, K Stahl wrote: > Seems to me that I've had this issue in the past, but for the life of > me, I cannot remember how it was resolved. Maybe someone else can > weigh in on this topic with some possible suggestions? Maybe the value of the CYGWIN variable. -- Earnie

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread K Stahl
Just out of curiosity, what is your exact version of Java? Post the result of: java --version On Wed, Jul 11, 2012 at 4:34 PM, K Stahl wrote: > Seems to me that I've had this issue in the past, but for the life of > me, I cannot remember how it was resolved. Maybe someone else can > weigh in on

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread K Stahl
Seems to me that I've had this issue in the past, but for the life of me, I cannot remember how it was resolved. Maybe someone else can weigh in on this topic with some possible suggestions? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Do

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread saltnlight5
Hi, I did compile and ran your Test.java program, and it's not working. I have java 6 $ java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode) K Stahl wrote: > > Hmm, what version of Java are you using

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread K Stahl
Hmm, what version of Java are you using? Mine example was tested on Java 1.6. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread saltnlight5
Thanks for the reply "K Stahl", but it didn't work for me. I ran the same Test, then press CTRL+C. But the cygwin terminal did nothing. It did not stop the java process, and it did not print any thing further. I must manually terminate the process by going into Windows TaskManager. Again, here i

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread K Stahl
You are correct in that you have the latest Cygwin release, but have you tried the test app I have provided? My assumption is that your application or its invocation script is causing the issue, not Cygwin itself. -- Problem reports: http://cygwin.com/problems.html FAQ: ht

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread saltnlight5
I do have the latest cygwin install. In fact I re-installed just today and it's still not working. I printed the full version in my previous email. Was that not the lastest cygwin version? K Stahl wrote: > > Just tested with this against the latest release version (1.7.15) and > everything wor

Re: CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread K Stahl
Just tested with this against the latest release version (1.7.15) and everything works as expected. Example: public final class Test { public static void main(String[] args) { System.out.println("This shall hang until CTRL-C is pressed..."); for (;;); } } javac -cp . Test.

CTRL+C is not working with java on latest cygwin 1.7.15

2012-07-11 Thread saltnlight5
Hi there, Before I upgraded cygwin, I used to be able to press CTRL+C to any java program, and it will trigger's shutdownhook and exit. But since I upgraded to latest cygwin, this is no longer working. Has anyone has this problem? My cygwin version: $ uname -a CYGWIN_NT-5.1 L328BDS002023US 1.7.1