diff options
Diffstat (limited to '')
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 4b063217a..ba29e3ea0 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -4960,7 +4960,7 @@ waitpid_child(int *status, int wait_flags) | |||
4960 | goto done; | 4960 | goto done; |
4961 | 4961 | ||
4962 | idx = WaitForMultipleObjects(pid_nr, proclist, FALSE, | 4962 | idx = WaitForMultipleObjects(pid_nr, proclist, FALSE, |
4963 | wait_flags&WNOHANG ? 1 : INFINITE); | 4963 | wait_flags & WNOHANG ? 0 : INFINITE); |
4964 | if (idx < pid_nr) { | 4964 | if (idx < pid_nr) { |
4965 | GetExitCodeProcess(proclist[idx], &win_status); | 4965 | GetExitCodeProcess(proclist[idx], &win_status); |
4966 | *status = exit_code_to_wait_status(win_status); | 4966 | *status = exit_code_to_wait_status(win_status); |