diff options
author | Ron Yorston <rmy@pobox.com> | 2020-02-20 08:23:03 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-02-20 10:39:46 +0100 |
commit | d5bfe26c457a97a8b525b6c27f5498525a5829bf (patch) | |
tree | a80b55274ac3fa64dd93244064e75a875d27abdd /shell/ash_test/ash-heredoc/heredoc.right | |
parent | ecc85832f8b4d8278b0a17aa62b0c8a9f81461e4 (diff) | |
download | busybox-d5bfe26c457a97a8b525b6c27f5498525a5829bf.tar.gz |
ash: return exit status of nofork applets (again)
Since commit d81af7216 (ash: eval: Reap zombies after built-in commands
and functions) if the shell is compiled with SH_STANDALONE and SH_NOFORK
enabled nofork applets potentially return the incorrect status.
The status value returned by evalcommand() in this case is obtained from
exitstatus in a call to waitforjob(NULL). This overwrites the status
set for nonfork applets.
If this commit seems familiar it's essentially a reversion of commit
5ccb0e92fa (ash: return exit status of nofork applets). What was correct
in 2016 is wrong in 2020 and vice versa.
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-heredoc/heredoc.right')
0 files changed, 0 insertions, 0 deletions