]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: fix regression when invoked with blocked SIGCHLD
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 18 Oct 2017 16:47:49 +0000 (18:47 +0200)
committerPádraig Brady <P@draigBrady.com>
Tue, 24 Oct 2017 06:09:02 +0000 (23:09 -0700)
commitcccd01b4dae1061dcad2ae14bea976ed86268d9b
treeba2713751a1027afe5d9171d8c4b72187044ff83
parent856b828320649d941097a89dbb8c5343760ddad0
timeout: fix regression when invoked with blocked SIGCHLD

We inherit the signal mask from our parent process,
therefore ensure SIGCHLD is not blocked.

If SIGCHLD is blocked, sigsuspend() won't be interrupted
when the child process exits and we hang until the timeout (SIGALRM).

This fixes a regression from commit v8.26-39-g2f69dba

* src/timeout.c (install_sigchld): Ensure SIGCHLD is unblocked.
* NEWS: Mention the issue.
NEWS
src/timeout.c