From 728bb21b191ebf577498589f7162e71b8df5ea65 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 20 Apr 2012 15:10:54 +0100 Subject: ash: omit non-MinGW for choosing whether to fork --- shell/ash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) break; } /* goes through to shellexec() */ -#endif +#else if (!(flags & EV_EXIT) || may_have_traps) { /* No, forking off a child is necessary */ INT_OFF; @@ -9882,6 +9882,7 @@ evalcommand(union node *cmd, int flags) FORCE_INT_ON; /* fall through to exec'ing external program */ } +#endif listsetvar(varlist.list, VEXPORT|VSTACK); shellexec(argv, path, cmdentry.u.index); /* NOTREACHED */ -- cgit v1.2.3-55-g6feb