This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
FW: Bash and CTRL-C. Problem (almost :-) solved.
- To: "'Gnu-Win32'" <gnu-win32 at cygnus dot com>
- Subject: FW: Bash and CTRL-C. Problem (almost :-) solved.
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Tue, 1 Apr 1997 11:14:14 +0400
- Encoding: 32 TEXT
----------
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@cygnus.com" with one line of text: "help".