[Bug 15619] Odd beavor of loops with async sleep in 1.136

bugzilla at busybox.net bugzilla at busybox.net
Fri Jun 16 21:00:19 UTC 2023


https://bugs.busybox.net/show_bug.cgi?id=15619

--- Comment #1 from Tero Saarni <tero.saarni at gmail.com> ---
This is because of built-in sleep [1] introduced in BusyBox 1.36.0 which exits
when receiving SIGCHLD.

Here is another way how to reproduce:

/bin/sleep 1 & sleep 10

The purpose of the first command it to trigger SIGCHLD after one second.
The second command should sleep for 10 seconds.

- If running it in busybox, the command sequence exits after 1 second
- If running it in bash, the command sequence exits after 10 second

Similar problem was previously reported for "read" [2] and fix [3] was applied
for it.

--
Tero

[1]
https://git.busybox.net/busybox/commit/?id=58598eb7093561d914a6254697e137b815f1fdfc
[2] https://www.mail-archive.com/busybox@busybox.net/msg24147.html
[3]
https://git.busybox.net/busybox/commit/?id=f5470419404d643070db99d058405b714695b817

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list