ps: ignore SIGCONT

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>
This commit is contained in:
Craig Small 2014-01-14 22:23:58 +11:00
parent 8622b582da
commit d06aaaaf2b
2 changed files with 2 additions and 0 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
procps-ng-3.3.10 procps-ng-3.3.10
---------------- ----------------
* sysctl --system loads default config file - Debian #732920 * sysctl --system loads default config file - Debian #732920
* ps doesn't exit on SIGCONT
procps-ng-3.3.9 procps-ng-3.3.9
--------------- ---------------

View File

@ -563,6 +563,7 @@ int main(int argc, char *argv[]){
default: default:
sigaction(i,&sa,NULL); sigaction(i,&sa,NULL);
case 0: case 0:
case SIGCONT:
case SIGINT: /* ^C */ case SIGINT: /* ^C */
case SIGTSTP: /* ^Z */ case SIGTSTP: /* ^Z */
case SIGTTOU: /* see stty(1) man page */ case SIGTTOU: /* see stty(1) man page */