Ctrl-C does not work from Cygwin for the java program
Michelle Ma
michellema0128@gmail.com
Wed Dec 3 21:15:00 GMT 2014
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 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.
Can someone help me out?
Thanks
--
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
More information about the Cygwin
mailing list