summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-08-25 11:25:30 +0100
committerPádraig Brady <P@draigBrady.com>2011-08-25 11:35:31 +0100
commit24a1a8c473c93d5b059d5afed245422b3a8a54ef (patch)
tree11af5ec68e3cb602771f452df94f456d4f673a27 /src
parent6a2751d59d89dc9a60553196f720bdeedd75d80a (diff)
downloadcoreutils-24a1a8c473c93d5b059d5afed245422b3a8a54ef.tar.xz
timeout: revert signal propagation enhancement
This effectively reverts the unreleased commit 5a647a05 * src/timeout.c (main): Don't propagate signals from the monitored process, as on Linux /proc/sys/kernel/core_pattern could still handle them and cause false reports against `timeout`
Diffstat (limited to 'src')
-rw-r--r--src/timeout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/timeout.c b/src/timeout.c
index 6a37508fd..ae899420b 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -424,7 +424,9 @@ main (int argc, char **argv)
else if (WIFSIGNALED (status))
{
int sig = WTERMSIG (status);
-#if HAVE_SETRLIMIT && defined RLIMIT_CORE
+/* The following is not used as one cannot disable processing
+ by a filter in /proc/sys/kernel/core_pattern on Linux. */
+#if 0 && HAVE_SETRLIMIT && defined RLIMIT_CORE
if (!timed_out)
{
/* exit with the signal flag set, but avoid core files. */