diff options
author | Ron Yorston <rmy@pobox.com> | 2020-02-21 16:16:56 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-02-24 12:52:41 +0100 |
commit | 6cda0b04a3d3c36312adf7a9aa608306f6a5704a (patch) | |
tree | 95f8d11e21dd7545f45cf5f269e606b37ca7a631 | |
parent | 7f198485529cf3b9cc074a944dec56769872a1e3 (diff) | |
download | busybox-w32-6cda0b04a3d3c36312adf7a9aa608306f6a5704a.tar.gz busybox-w32-6cda0b04a3d3c36312adf7a9aa608306f6a5704a.tar.bz2 busybox-w32-6cda0b04a3d3c36312adf7a9aa608306f6a5704a.zip |
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>
-rw-r--r-- | shell/ash.c | 3 |
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) | |||
10392 | jp = makejob(/*cmd,*/ 1); | 10392 | jp = makejob(/*cmd,*/ 1); |
10393 | if (forkshell(jp, cmd, FORK_FG) != 0) { | 10393 | if (forkshell(jp, cmd, FORK_FG) != 0) { |
10394 | /* parent */ | 10394 | /* parent */ |
10395 | TRACE(("forked child exited with %d\n", status)); | ||
10396 | break; | 10395 | break; |
10397 | } | 10396 | } |
10398 | /* child */ | 10397 | /* child */ |
@@ -10418,6 +10417,8 @@ evalcommand(union node *cmd, int flags) | |||
10418 | } /* switch */ | 10417 | } /* switch */ |
10419 | 10418 | ||
10420 | status = waitforjob(jp); | 10419 | status = waitforjob(jp); |
10420 | if (jp) | ||
10421 | TRACE(("forked child exited with %d\n", status)); | ||
10421 | FORCE_INT_ON; | 10422 | FORCE_INT_ON; |
10422 | 10423 | ||
10423 | out: | 10424 | out: |