]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: handle signals more transparently
authorPádraig Brady <P@draigBrady.com>
Fri, 8 Jul 2011 13:49:05 +0000 (14:49 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 8 Jul 2011 14:11:27 +0000 (15:11 +0100)
commit5a647a05e20cb6f91f1aef95b2c83f8ebb03a67c
tree1765b44cbf5ab02b75730c1abad095b2b0053cde
parent4d90d29899917ec16ea5806a0456501e5e948960
timeout: handle signals more transparently

* m4/jm-macros.m4: Define HAVE_SETRLIMIT.
* src/timeout.c: If the child exited with a signal,
raise that signal to the timeout process itself,
so that callers may also see the signal status.
Use setrlimit to disable core dumps for the timeout
process, which would be generated by some signals.
m4/jm-macros.m4
src/timeout.c