coreutils/m4
Pádraig Brady 64be8b40f4 timeout: handle signals more transparently
This was originally attempted in commit v8.12-117-g5a647a0,
but reverted before release because of the unreliability
of disabling core dumps using setrlimit() on Linux kernels.
This new version instead uses prctl() where available to
more reliably disable core dumps for the timeout process.

* m4/jm-macros.m4: Define HAVE_SETRLIMIT and HAVE_PRCTL.
* src/timeout.c (disable_core_dumps): A new function
that disables coredumps using prctl or setrlimit if available.
(main): If the child exited with a signal and we can
disable core dumps, then raise that signal to the timeout
process itself, so that callers may also see the signal status.
Also print a message indicating when the monitored command
dumped core, as that information is lost in the signal
propagation through timeout.
2012-09-24 15:46:51 +01:00
..
boottime.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
ChangeLog-2007 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
check-decl.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
gmp.m4 maint: update all copyright year number ranges 2012-01-01 10:04:06 +01:00
include-exclude-prog.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
jm-macros.m4 timeout: handle signals more transparently 2012-09-24 15:46:51 +01:00
prereq.m4 maint: move the last coreutils-specific files from lib/ to gl/ 2012-09-10 08:58:03 +02:00
stat-prog.m4 stat: report the correct block size for file system usage 2012-05-16 00:21:25 +01:00
xattr.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00