X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6b6847272dc5d21ca6fcd23bf20e16193b226c0a..2b60a54adb3b0bf5a9b927708085492b816a6015:/sbr/pidstatus.c 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) {