aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-02-17 15:16:44 +0000
committerRon Yorston <rmy@pobox.com>2018-02-17 15:16:44 +0000
commit96c9c0044f3c0a8e3b23e1eb05a86a6222cb741c (patch)
treee3c78ecd0adc3bc5a6c53cfc1ee730f6a25975d7 /shell
parentbb5f814ead8cfe1ea11db0aab227af1a8d40baed (diff)
downloadbusybox-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.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
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);