summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-12-07 19:00:04 +0000
committerPádraig Brady <P@draigBrady.com>2009-12-08 15:17:01 +0000
commit73d46261344d5bd05c0940bc2ec5f9ed9a47db1b (patch)
treea8f47c3c6d786de38da1688a8af5b920be31de6a /NEWS
parent7ac41f995014067dd4f9eb6f75875f44f761e49a (diff)
downloadcoreutils-73d46261344d5bd05c0940bc2ec5f9ed9a47db1b.tar.xz
timeout: fix failure if timeout's parent has ignored SIGCHLD
* src/timeout.c (main): Reset the SIGCHLD handler to the default as otherwise wait() could return -1 and set errno to ECHILD. This condition was ignored until commit 0b1dcf33, on 31-08-2009, "timeout: defensive handling of all wait() errors" but subsequently timeout would run the command correctly but then fail with an error message. * tests/misc/timeout: In a subshell set the CHLD handler to SIG_IGN to ensure the timeout command resets it to SIG_DFL. * NEWS: Mention the fix.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 19cca5bdb..469865a6d 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,9 @@ GNU coreutils NEWS -*- outline -*-
the presence of the empty string argument.
[bug introduced in coreutils-8.0]
+ timeout is now immune to the signal handling of its parent.
+ Specifically timeout now doesn't exit with an error message
+ if its parent ignores CHLD signals. [bug introduced in coreutils-7.6]
* Noteworthy changes in release 8.1 (2009-11-18) [stable]