From 96c9c0044f3c0a8e3b23e1eb05a86a6222cb741c Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sat, 17 Feb 2018 15:16:44 +0000 Subject: ash: allow waitpid_child to block The wrong sort of boolean operator resulted in waitpid_child always being nonblocking. --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') 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) } idx = WaitForMultipleObjects(pid_nr, proclist, FALSE, - wait_flags|WNOHANG ? 1 : INFINITE); + wait_flags&WNOHANG ? 1 : INFINITE); if (idx >= pid_nr) { free(pidlist); free(proclist); -- cgit v1.2.3-55-g6feb