* exceptions.cc (sig_handle): Accept a second argument indicating whether the
signal came from this process or not. * sigproc.h: Reflect sig_handle arg change. * signal.cc (kill_pgrp): Add sigframe info. (abort): New function. Eliminates newlib function of same name. * sigproc.cc (wait_sig): Pass "signal from this process" value as arg 2.
This commit is contained in:
@ -1190,7 +1190,7 @@ wait_sig (VOID *)
|
||||
/* A normal UNIX signal */
|
||||
default:
|
||||
sigproc_printf ("Got signal %d", sig);
|
||||
int wasdispatched = sig_handle (sig);
|
||||
int wasdispatched = sig_handle (sig, rc != 2);
|
||||
if (sig == SIGCHLD && wasdispatched)
|
||||
dispatched_sigchld = 1;
|
||||
/* Need to decrement again to offset increment below since
|
||||
|
Reference in New Issue
Block a user