aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2026-07-16 13:46:08 +0100
committerRon Yorston <rmy@pobox.com>2026-07-16 14:09:16 +0100
commitd49a90b998ca8d381fead3ac8060071bec46c393 (patch)
treeb8bce59e83c7ebcbeb4b81f0564f68b29dd143b3 /include/platform.h
parentdfb473921952e6c049aa7a591efca78db7a4720d (diff)
downloadbusybox-w32-waitfor.tar.gz
busybox-w32-waitfor.tar.bz2
busybox-w32-waitfor.zip
ash: allow wait to handle more than 64 processeswaitfor
WaitForMultipleObjects() can only handle 64 processes (actually, MAXIMUM_WAIT_OBJECTS) in a single call. Using the 'wait' shell built-in after a command like: for i in $(seq 1 70); do echo $i; sleep 10 & done resulted in an uninterruptible 'wait'. Handle processes in batches of MAXIMUM_WAIT_OBJECTS. The problem was noted by Morgan Bartlett, who also supplied a fix which I claim to have 'improved'. Adds 32-48 bytes. Signed-off-by: Ron Yorston <rmy@pobox.com>
Diffstat (limited to 'include/platform.h')
0 files changed, 0 insertions, 0 deletions