From: ronny AT luxsonor DOT com (Ron Karpel) Subject: Ctrl-C in Bash Window 21 Jan 1997 19:40:06 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199701220018.QAA04888.cygnus.gnu-win32@samoa.mpact> Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com 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 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".