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 <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2014-06-24 00:00:00 -05:00 committed by Jaromir Capik
parent 62dcbe3188
commit cec1976511

View File

@ -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
}