]> Sergey Matveev's repositories - public-inbox.git/commit
t/spawn: fix test reliability
authorEric Wong <e@yhbt.net>
Tue, 7 Jul 2020 06:17:24 +0000 (06:17 +0000)
committerEric Wong <e@yhbt.net>
Tue, 7 Jul 2020 20:38:57 +0000 (20:38 +0000)
commit80a4e0da8cba8f782eb6083a0bc54dd8d84be238
treea2d41c5cfb2d114c8e8720b0efa22123a0101f05
parentc0f3095c2f0fdf3409a2d7bc629230cd83a06f9f
t/spawn: fix test reliability

Since Perl doesn't internally use a self-pipe for
sleep/select/poll/etc, wake up every 10ms to ensure
it can see the SIGCHLD; since neither signalfd nor EVFILT_SIGNAL
are always available.

Fixes: 761baa2a300e4268 ("spawn: unblock SIGCHLD in subprocess")
t/spawn.t