diff options
| author | Ron Yorston <rmy@pobox.com> | 2026-07-16 13:46:08 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2026-07-16 14:09:16 +0100 |
| commit | d49a90b998ca8d381fead3ac8060071bec46c393 (patch) | |
| tree | b8bce59e83c7ebcbeb4b81f0564f68b29dd143b3 /findutils/find.c | |
| parent | dfb473921952e6c049aa7a591efca78db7a4720d (diff) | |
| download | busybox-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 'findutils/find.c')
0 files changed, 0 insertions, 0 deletions
