Ctrl-C and non-cygwin programs

2006-11-30 Thread Simon Marlow
I'm experiencing strange behaviour with Ctrl-C with non-cygwin programs started from Cygwin bash. Take the following program: #include #include "stdio.h" static BOOL WINAPI handler(DWORD dwCtrlType) { switch (dwCtrlType) { case CTRL_C_EVENT: case CTRL_B

RE: Ctrl-C and non-cygwin programs

2006-12-04 Thread Simon Marlow
Brian Dessent wrote: > Simon Marlow wrote: > >> Then run the program, hit Ctrl-C and see what happens. The > behaviour differs depending on the environment: >> >> * In a Cygwin shell started from cygwin.bat, with the CYGWIN >> environment variable empty: co