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:
Qualys Security Advisory 1970-01-01 00:00:00 +00:00 committed by Craig Small
parent 022cda9599
commit e1f419737f

View File

@ -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