From e1f419737f01618181686281ae98347e03163e56 Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 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()." --- top/top.c | 1 + 1 file changed, 1 insertion(+) 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