From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: FW: Bash and CTRL-C. Problem (almost :-) solved. 1 Apr 1997 10:16:35 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <01BC3E8D.D63E01B0.cygnus.gnu-win32@gater.krystalbank.msk.ru> Original-To: "'Gnu-Win32'" Encoding: 32 TEXT Original-Sender: owner-gnu-win32 AT cygnus DOT com ---------- From: Sergey Okhapkin Sent: 31 марта 1997 г. 0:32 To: 'Gnu-win32' Cc: 'Geoffrey Noer'; 'Jeremy Allison' Subject: Bash and CTRL-C. Problem (almost :-) solved. /* FIXME: exit calls atexit handlers. */ ! /*exit ((sig<<8) | 0x10000);*/ ! debug_printf ("ctrl_c_handler: type %d, sig %d, about to call exit\n", ! type, sig); ! call_handler (exit, (sig<<8) | 0x10000, ! (EXCEPTION_RECORD *)0, (CONTEXT *)0); ! return 1; } *************** { ! /*exit (4);*/ ! debug_printf ("ctrl_c_handler: type %d, sig %d, about to call exit\n", ! type, sig); ! call_handler (exit, 4, ! (EXCEPTION_RECORD *)0, (CONTEXT *)0); Fix from Jim Balter: in both cases we shold call call_handler(_exit,....). -- Sergey Okhapkin Moscow, Russia Looking for a job - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".