aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 39b14d5a6..96dab9a81 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -4961,7 +4961,11 @@ waitone(int block, struct job *job)
4961static int 4961static int
4962dowait(int block, struct job *jp) 4962dowait(int block, struct job *jp)
4963{ 4963{
4964#if !ENABLE_PLATFORM_MINGW32
4964 int pid = block == DOWAIT_NONBLOCK ? got_sigchld : 1; 4965 int pid = block == DOWAIT_NONBLOCK ? got_sigchld : 1;
4966#else
4967 int pid = 1;
4968#endif
4965 4969
4966 while (jp ? jp->state == JOBRUNNING : pid > 0) { 4970 while (jp ? jp->state == JOBRUNNING : pid > 0) {
4967 if (!jp) 4971 if (!jp)
@@ -11029,7 +11033,7 @@ evalcommand(union node *cmd, int flags)
11029 * and/or wait for user input ineligible for NOFORK: 11033 * and/or wait for user input ineligible for NOFORK:
11030 * for example, "yes" or "rm" (rm -i waits for input). 11034 * for example, "yes" or "rm" (rm -i waits for input).
11031 */ 11035 */
11032 status = run_nofork_applet(applet_no, argv); 11036 exitstatus = run_nofork_applet(applet_no, argv);
11033 environ = sv_environ; 11037 environ = sv_environ;
11034 /* 11038 /*
11035 * Try enabling NOFORK for "yes" applet. 11039 * Try enabling NOFORK for "yes" applet.