I'm a bit worried about doing the following in this patch. It seems to work but I can see ignoring CHLD being problematic for some shells/situations. I'll probably push without the test.
--- a/tests/misc/timeout +++ b/tests/misc/timeout @@ -23,6 +23,7 @@ fi . $srcdir/test-lib.sh +trap '' CHLD # ensure `timeout` is immune to parent's SIGCHLD handler