X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5776f9b783afe8e6bdbe430adb5d5b9435d25b19..d3e11c5e9:/sbr/pidstatus.c?ds=inline diff --git a/sbr/pidstatus.c b/sbr/pidstatus.c index 82f2d119..6e4c2c7d 100644 --- a/sbr/pidstatus.c +++ b/sbr/pidstatus.c @@ -1,6 +1,4 @@ - -/* - * pidstatus.c -- report child's status +/* pidstatus.c -- report child's status * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -47,7 +45,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) {