diff options
author | Tommi Rantala <tommi.t.rantala@nokia.com> | 2021-10-11 13:33:18 +0300 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2021-10-14 07:50:37 +1100 |
commit | b6ccf865f83f98478a814c1d79d17a0b5212cc6e (patch) | |
tree | e6c1a5c86aeaf1ea7416a8ac5395b7249ba88179 | |
parent | 3f2d7a0bf6a848a50e41dcdeea500502f4ab21a3 (diff) | |
download | procps-ng-b6ccf865f83f98478a814c1d79d17a0b5212cc6e.tar.gz |
ps: ignore SIGURG
Stop registering signal handler for SIGURG, to avoid ps failure if
someone sends such signal. Without the signal handler, SIGURG will
just be ignored.
Signal 23 (URG) caught by ps (3.3.16).
ps:ps/display.c:66: please report this bug
https://man7.org/linux/man-pages/man7/signal.7.html
https://www.freebsd.org/cgi/man.cgi?sektion=3&query=signal
-rw-r--r-- | ps/display.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ps/display.c b/ps/display.c index 1fddbbe..b0da9e7 100644 --- a/ps/display.c +++ b/ps/display.c @@ -638,6 +638,7 @@ int main(int argc, char *argv[]){ case SIGKILL: /* can not catch */ case SIGSTOP: /* can not catch */ case SIGWINCH: /* don't care if window size changes */ + case SIGURG: /* Urgent condition on socket (4.2BSD) */ ; } } while (0); |