timeout: ensure a blocked SIGALRM from the parent is unblocked
authorStephan Krempel <krempel@par-tec.com>
Fri, 25 Jan 2013 02:48:46 +0000 (02:48 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 26 Jan 2013 02:38:52 +0000 (02:38 +0000)
commitf8c0258d4643dbabc461a84d0b940be44a680a9b
treea693b5ef23d5314a2aa835f8aea213a828b16530
parent2238ab574191d30b89a007b760c616efaf9c219c
timeout: ensure a blocked SIGALRM from the parent is unblocked

* src/timeout.c (unblock_signal): A new function to unblock a
specified signal, or warn if not possible.
(set_timeout): Ensure SIGALRM is unblocked before we setup the timer.
* tests/misc/timeout-blocked.pl: A new test for the issue.
* tests/local.mk: Reference the new test.
* NEWS: Mention the fix.
Fixes: http://bugs.gnu.org/13535
NEWS
src/timeout.c
tests/local.mk
tests/misc/timeout-blocked.pl [new file with mode: 0755]