]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: avoid unlikely issues with --kill-after
authorPádraig Brady <P@draigBrady.com>
Tue, 26 Nov 2013 14:27:25 +0000 (14:27 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 27 Nov 2013 01:30:46 +0000 (01:30 +0000)
commitc3523181bd487539f308113620564756c29279cc
tree09b2a1039b67a664dc0660fdc0cc51e723597e39
parent6b91f64ed9e15c9df0767f4658de9ba4532456cf
timeout: avoid unlikely issues with --kill-after

* src/timeout.c (cleanup): When calling settimeout() from
this signal handler, ensure we don't call out to error()
or gettext(), which are not async-signal-safe.
Also reset the errno which may be cleared by settimeout().
src/timeout.c