mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-23 18:05:42 +08:00
64be8b40f4
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. |
||
---|---|---|
.. | ||
boottime.m4 | ||
ChangeLog-2007 | ||
check-decl.m4 | ||
gmp.m4 | ||
include-exclude-prog.m4 | ||
jm-macros.m4 | ||
prereq.m4 | ||
stat-prog.m4 | ||
xattr.m4 |