ash: move TRACE statement in evalcommand()

Following recent work on evalcommand() a TRACE statement to report
the status of a forked command was left in the wrong place.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Ron Yorston
2020-02-21 16:16:56 +00:00
committed by Denys Vlasenko
parent 7f19848552
commit 6cda0b04a3

View File

@ -10392,7 +10392,6 @@ evalcommand(union node *cmd, int flags)
jp = makejob(/*cmd,*/ 1); jp = makejob(/*cmd,*/ 1);
if (forkshell(jp, cmd, FORK_FG) != 0) { if (forkshell(jp, cmd, FORK_FG) != 0) {
/* parent */ /* parent */
TRACE(("forked child exited with %d\n", status));
break; break;
} }
/* child */ /* child */
@ -10418,6 +10417,8 @@ evalcommand(union node *cmd, int flags)
} /* switch */ } /* switch */
status = waitforjob(jp); status = waitforjob(jp);
if (jp)
TRACE(("forked child exited with %d\n", status));
FORCE_INT_ON; FORCE_INT_ON;
out: out: