From 0847390b8335c1747a3ea0944123b2f594251bc0 Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 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 3baf7984..4d687d41 100644 --- a/top/top.c +++ b/top/top.c @@ -582,6 +582,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