Subject: FW: Bash and CTRL-C. Problem (almost :-) solved.
From: [email-masked] (Sergey Okhapkin)

1 Apr 1997 10:16:35 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: "'Gnu-Win32'" <[email-masked]>
Encoding: 32 TEXT
Original-Sender: [email-masked]

----------
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
"[email-masked]" with one line of text: "help".