-
-/*
- * 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
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) {