]> granicus.if.org Git - procps-ng/commit
ps/display.c: Always exit from signal_handler().
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Fri, 18 May 2018 21:32:21 +0000 (07:32 +1000)
commit2e4a59422104ed7fa5502874f9076b8118edd6a8
tree8c740b3728c91f56f7c7e50663c6188a0c8d6ed8
parent7dd7bdb09ffc5f53ad531ace227882d4a19a6f4a
ps/display.c: Always exit from signal_handler().

Right now, "we _exit() anyway" is not always true: for example, the
default action for SIGURG is to ignore the signal, which means that
"kill(getpid(), signo);" does not terminate the process. Call _exit()
explicitly, in this case (rather than exit(), because the terminating
kill() calls do not call the functions registered with atexit() either).
ps/display.c