From cec19765115e9c65c52412c16d03f8d515506d7e Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Tue, 24 Jun 2014 00:00:00 -0500 Subject: [PATCH] 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 --- top/top.c | 2 ++ 1 file changed, 2 insertions(+) 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 } -- 2.40.0