From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 (+0000) Subject: 0108-top: Always exit from sig_abexit(). X-Git-Tag: v4.0.0~573 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1f419737f01618181686281ae98347e03163e56;p=procps-ng 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()." --- diff --git a/top/top.c b/top/top.c index eefa6358..69719b07 100644 --- a/top/top.c +++ b/top/top.c @@ -419,6 +419,7 @@ static void sig_abexit (int sig) { , sig, signal_number_to_name(sig), Myname); signal(sig, SIG_DFL); // allow core dumps, if applicable raise(sig); // ( plus set proper return code ) + _exit(sig | 0x80); // if default sig action is ignore } // end: sig_abexit