From: Jim Warner Date: Tue, 24 Jun 2014 05:00:00 +0000 (-0500) Subject: top: let's not pretend top can catch SIGKILL & SIGSTOP X-Git-Tag: v3.3.10~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cec19765115e9c65c52412c16d03f8d515506d7e;p=procps-ng top: let's not pretend top can catch SIGKILL & SIGSTOP While there was no harm done setting a handler for the above two signals, they are in fact uncatchable. Thus, whenever we ran with valgrind we're politely reminded. Signed-off-by: Jim Warner --- diff --git a/top/top.c b/top/top.c index 0094538c..f0369bc4 100644 --- a/top/top.c +++ b/top/top.c @@ -3342,6 +3342,8 @@ static void before (char *me) { default: sa.sa_handler = sig_abexit; break; + case SIGKILL: case SIGSTOP: + // because uncatchable, fall through case SIGCHLD: // we can't catch this continue; // when opening a pipe }