]> granicus.if.org Git - procps-ng/commitdiff
ps: ignore SIGCONT
authorCraig Small <csmall@enc.com.au>
Tue, 14 Jan 2014 11:23:58 +0000 (22:23 +1100)
committerCraig Small <csmall@enc.com.au>
Tue, 14 Jan 2014 11:23:58 +0000 (22:23 +1100)
SIGCONT is a continue signal.  It seems that some zsh setups can send
this signal, causing ps to abort.  This is not what "continue" means.
This change just uses the default handler which will continue a stopped
process.

References:
  http://bugs.debian.org/732410
  http://www.zsh.org/cgi-bin/mla/redirect?WORKERNUMBER=32251

Signed-off-by: Craig Small <csmall@enc.com.au>
NEWS
ps/display.c

diff --git a/NEWS b/NEWS
index 1c710a3b5802cc8769e0b97772c2b1efdf47da55..a2afaa325c6e69325ad420caf79845513eba46d6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 procps-ng-3.3.10
 ----------------
   * sysctl --system loads default config file - Debian #732920
+  * ps doesn't exit on SIGCONT
 
 procps-ng-3.3.9
 ---------------
index c20285d411668600a35c9efe2cf1ee7b36879890..693154bda66eef2cd3a94c180f8493898e58158d 100644 (file)
@@ -563,6 +563,7 @@ int main(int argc, char *argv[]){
     default:
       sigaction(i,&sa,NULL);
     case 0:
+    case SIGCONT:
     case SIGINT:   /* ^C */
     case SIGTSTP:  /* ^Z */
     case SIGTTOU:  /* see stty(1) man page */