0108-top: Always exit from sig_abexit().
The default action for SIGURG is to ignore the signal, for example. This is very similar to the patch "ps/display.c: Always exit from signal_handler()."
This commit is contained in:
parent
022cda9599
commit
e1f419737f
@ -419,6 +419,7 @@ static void sig_abexit (int sig) {
|
|||||||
, sig, signal_number_to_name(sig), Myname);
|
, sig, signal_number_to_name(sig), Myname);
|
||||||
signal(sig, SIG_DFL); // allow core dumps, if applicable
|
signal(sig, SIG_DFL); // allow core dumps, if applicable
|
||||||
raise(sig); // ( plus set proper return code )
|
raise(sig); // ( plus set proper return code )
|
||||||
|
_exit(sig | 0x80); // if default sig action is ignore
|
||||||
} // end: sig_abexit
|
} // end: sig_abexit
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user