On Mon, Feb 15, 2021 at 09:41:29AM -0500, Chet Ramey wrote: > Just for testing, not for any real use case. > > > He also provided me with his new test case > > to see the interaction with SIGCHLD. The failure of this test case > > seems to have also involved SIGCHLD in the previous devel Bash. Now in > > the current devel, it is improved but still sometimes blocks.
Originally, this was a (my) bug in a multi-tasked script**, where timeout was (wrongly) computed from previous step. When my script locked for unknown reason, I wrote test script in order to reveal this. > If you need a timeout on the order of a single microsecond in a shell > script, I urge you to reconsider your choices. I agree, for this kind of tricks, Python (or even Perl) is more apropriated, but I like to see how a poor system (with only few binary libraries) could do unattended things... ...And it's fun to see how far we can go with bash, today. ** https://f-hauri.ch/vrac/multiping.sh.txt -- Félix Hauri - <fe...@f-hauri.ch> - http://www.f-hauri.ch