X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5776f9b783afe8e6bdbe430adb5d5b9435d25b19..0db4e9eaa147062611dd63e80e2a2df567d398ba:/sbr/pidstatus.c diff --git a/sbr/pidstatus.c b/sbr/pidstatus.c index 82f2d119..ded38edc 100644 --- a/sbr/pidstatus.c +++ b/sbr/pidstatus.c @@ -47,7 +47,9 @@ pidstatus (int status, FILE *fp, char *cp) fprintf (fp, "exit %d\n", signum); } return signum; - } else if (WIFSIGNALED(status)) { + } + + if (WIFSIGNALED(status)) { /* If child process terminated due to receipt of a signal */ signum = WTERMSIG(status); if (signum != SIGINT) {