From 1d42b86df9052528a8f56b2f52d8bc2faf87b2da Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Sun, 28 Jan 2018 22:49:17 +0100 Subject: New upstream version 237 --- src/coredump/coredump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/coredump/coredump.c') diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index e6063cc980..fdcea22f56 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -1126,7 +1126,7 @@ static int gather_pid_metadata( /* If this is PID 1 disable coredump collection, we'll unlikely be able to process it later on. */ if (is_pid1_crash((const char**) context)) { log_notice("Due to PID 1 having crashed coredump collection will now be turned off."); - (void) write_string_file("/proc/sys/kernel/core_pattern", "|/bin/false", 0); + disable_coredumps(); } set_iovec_field(iovec, n_iovec, "COREDUMP_UNIT=", context[CONTEXT_UNIT]); -- cgit v1.2.1