mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
ash: a bit of NOFORK code should only be active if FEATURE_SH_STANDALONE=y
function old new delta evalcommand 1546 1420 -126 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cefdd4be1f
commit
1750d3afc1
1 changed files with 3 additions and 1 deletions
|
|
@ -10011,7 +10011,9 @@ evalcommand(union node *cmd, int flags)
|
|||
switch (cmdentry.cmdtype) {
|
||||
default: {
|
||||
|
||||
#if ENABLE_FEATURE_SH_NOFORK && NUM_APPLETS > 1
|
||||
#if ENABLE_FEATURE_SH_STANDALONE \
|
||||
&& ENABLE_FEATURE_SH_NOFORK \
|
||||
&& NUM_APPLETS > 1
|
||||
/* (1) BUG: if variables are set, we need to fork, or save/restore them
|
||||
* around run_nofork_applet() call.
|
||||
* (2) Should this check also be done in forkshell()?
|
||||
|
|
|
|||
Loading…
Reference in a new issue