]> diplodocus.org Git - nmh/blobdiff - sbr/pidstatus.c
mhbuildsbr.c: Flip logic, moving goto to then-block; no need for else.
[nmh] / sbr / pidstatus.c
index 82f2d1194159853bc57fc19e9d8e88472129b8eb..6e4c2c7d405b1acaaf3ac8835a06e46e384585fd 100644 (file)
@@ -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) {