]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
timeout: revert signal propagation enhancement
authorPádraig Brady <P@draigBrady.com>
Thu, 25 Aug 2011 10:25:30 +0000 (11:25 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 25 Aug 2011 10:35:31 +0000 (11:35 +0100)
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`

src/timeout.c

index 6a37508fd4d01dc43889199bd4f55bacf57f311d..ae899420b83bf330e9ba6ee5b68929828337ecba 100644 (file)
@@ -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.  */