aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index e7a0e5dc5..80a85b9eb 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -4153,7 +4153,7 @@ waitpid_child(int *status, int wait_flags)
4153 #undef LOOP 4153 #undef LOOP
4154 4154
4155 idx = WaitForMultipleObjects(pid_nr, pidlist, FALSE, 4155 idx = WaitForMultipleObjects(pid_nr, pidlist, FALSE,
4156 wait_flags|WNOHANG ? 0 : INFINITE); 4156 wait_flags|WNOHANG ? 1 : INFINITE);
4157 if (idx >= pid_nr) { 4157 if (idx >= pid_nr) {
4158 free(pidlist); 4158 free(pidlist);
4159 return -1; 4159 return -1;