diff options
author | Ron Yorston <rmy@pobox.com> | 2018-02-17 15:16:44 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-02-17 15:16:44 +0000 |
commit | 96c9c0044f3c0a8e3b23e1eb05a86a6222cb741c (patch) | |
tree | e3c78ecd0adc3bc5a6c53cfc1ee730f6a25975d7 | |
parent | bb5f814ead8cfe1ea11db0aab227af1a8d40baed (diff) | |
download | busybox-w32-96c9c0044f3c0a8e3b23e1eb05a86a6222cb741c.tar.gz busybox-w32-96c9c0044f3c0a8e3b23e1eb05a86a6222cb741c.tar.bz2 busybox-w32-96c9c0044f3c0a8e3b23e1eb05a86a6222cb741c.zip |
ash: allow waitpid_child to block
The wrong sort of boolean operator resulted in waitpid_child always
being nonblocking.
-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 36ddda1bc..8f137404f 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -4457,7 +4457,7 @@ waitpid_child(int *status, int wait_flags) | |||
4457 | } | 4457 | } |
4458 | 4458 | ||
4459 | idx = WaitForMultipleObjects(pid_nr, proclist, FALSE, | 4459 | idx = WaitForMultipleObjects(pid_nr, proclist, FALSE, |
4460 | wait_flags|WNOHANG ? 1 : INFINITE); | 4460 | wait_flags&WNOHANG ? 1 : INFINITE); |
4461 | if (idx >= pid_nr) { | 4461 | if (idx >= pid_nr) { |
4462 | free(pidlist); | 4462 | free(pidlist); |
4463 | free(proclist); | 4463 | free(proclist); |