Mail Archives: cygwin/1997/01/21/19:40:06
Hi,
I am trying to catch keyboard interrupt (ctrl-c). I use the standard
signal handler. It works fine when I run the application in `cmd.exe',
but not in `bash'. It even works in emacs shell as long as I use
cmd.exe.
does anybody know a way to make this work in `bash'?
Thanks,
Ron
Here is how I implemented the signal handler.
#include <signal.h>
void sigint()
{
printf("interrupt...\n");
debug_flag = 1;
signal(SIGINT, sigint);
}
int main(argc, argv)
int argc;
char *argv[];
{
signal(SIGINT, sigint);
}
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -