summaryrefslogtreecommitdiff
path: root/m4/jm-macros.m4
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-07-08 14:49:05 +0100
committerPádraig Brady <P@draigBrady.com>2011-07-08 15:11:27 +0100
commit5a647a05e20cb6f91f1aef95b2c83f8ebb03a67c (patch)
tree1765b44cbf5ab02b75730c1abad095b2b0053cde /m4/jm-macros.m4
parent4d90d29899917ec16ea5806a0456501e5e948960 (diff)
downloadcoreutils-5a647a05e20cb6f91f1aef95b2c83f8ebb03a67c.tar.gz
coreutils-5a647a05e20cb6f91f1aef95b2c83f8ebb03a67c.tar.bz2
coreutils-5a647a05e20cb6f91f1aef95b2c83f8ebb03a67c.zip
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.
Diffstat (limited to 'm4/jm-macros.m4')
-rw-r--r--m4/jm-macros.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index ec553105f..9bb6fa425 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -65,6 +65,8 @@ AC_DEFUN([coreutils_MACROS],
# Used by sort.c.
AC_CHECK_FUNCS_ONCE([nl_langinfo])
+ # Used by timeout.c
+ AC_CHECK_FUNCS_ONCE([setrlimit])
# Used by tail.c.
AC_CHECK_FUNCS([inotify_init],