Re: Ctrl-C does not work from Cygwin for the java program

2014-12-04 Thread J. David Boyd
Warren Young writes: > On Dec 3, 2014, at 2:12 PM, Michelle Ma wrote: > >> If I type Ctrl-C from the windows command prompt, the "Ouput" line got >> called. However, if I type Ctrl-c from the Cygwin, the "Output" line >> didn't get called. > > I assume you are trying this from the default MinT

Re: Ctrl-C does not work from Cygwin for the java program

2014-12-03 Thread Warren Young
On Dec 3, 2014, at 2:12 PM, Michelle Ma wrote: > If I type Ctrl-C from the windows command prompt, the "Ouput" line got > called. However, if I type Ctrl-c from the Cygwin, the "Output" line > didn't get called. I assume you are trying this from the default MinTTY shell. What happens if you

Ctrl-C does not work from Cygwin for the java program

2014-12-03 Thread Michelle Ma
I have a java program with adding a shutdown hook: public class Test { public static void main(String args[]) { Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { System.out.println("Called"); // Ouput } }); for(;;); } } If I type