aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-04-20 15:10:54 +0100
committerRon Yorston <rmy@pobox.com>2012-04-20 15:10:54 +0100
commit728bb21b191ebf577498589f7162e71b8df5ea65 (patch)
treea5ae5a30aad5a9a6057e915f0065e3057a7fa571
parente976c5d081b35b5ee60ed755ec5ddca7c326d9c1 (diff)
downloadbusybox-w32-728bb21b191ebf577498589f7162e71b8df5ea65.tar.gz
busybox-w32-728bb21b191ebf577498589f7162e71b8df5ea65.tar.bz2
busybox-w32-728bb21b191ebf577498589f7162e71b8df5ea65.zip
ash: omit non-MinGW for choosing whether to fork
-rw-r--r--shell/ash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 109473b97..3719066b9 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -9866,7 +9866,7 @@ evalcommand(union node *cmd, int flags)
9866 break; 9866 break;
9867 } 9867 }
9868 /* goes through to shellexec() */ 9868 /* goes through to shellexec() */
9869#endif 9869#else
9870 if (!(flags & EV_EXIT) || may_have_traps) { 9870 if (!(flags & EV_EXIT) || may_have_traps) {
9871 /* No, forking off a child is necessary */ 9871 /* No, forking off a child is necessary */
9872 INT_OFF; 9872 INT_OFF;
@@ -9882,6 +9882,7 @@ evalcommand(union node *cmd, int flags)
9882 FORCE_INT_ON; 9882 FORCE_INT_ON;
9883 /* fall through to exec'ing external program */ 9883 /* fall through to exec'ing external program */
9884 } 9884 }
9885#endif
9885 listsetvar(varlist.list, VEXPORT|VSTACK); 9886 listsetvar(varlist.list, VEXPORT|VSTACK);
9886 shellexec(argv, path, cmdentry.u.index); 9887 shellexec(argv, path, cmdentry.u.index);
9887 /* NOTREACHED */ 9888 /* NOTREACHED */