aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index bf6a86d3d..03864c667 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -10392,7 +10392,6 @@ evalcommand(union node *cmd, int flags)
jp = makejob(/*cmd,*/ 1);
if (forkshell(jp, cmd, FORK_FG) != 0) {
/* parent */
- TRACE(("forked child exited with %d\n", status));
break;
}
/* child */
@@ -10418,6 +10417,8 @@ evalcommand(union node *cmd, int flags)
} /* switch */
status = waitforjob(jp);
+ if (jp)
+ TRACE(("forked child exited with %d\n", status));
FORCE_INT_ON;
out: