Re: [PATCH] timeout: fix failure if timeout's parent has ignored SIGCHLD
From:
Pádraig Brady
Subject:
Re: [PATCH] timeout: fix failure if timeout's parent has ignored SIGCHLD
Date:
Tue, 08 Dec 2009 10:15:05 +0000
User-agent:
Thunderbird 2.0.0.6 (X11/20071008)
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