From 752bcb770bcea96144c7e2e7eb7dc4bc9108d0bb Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Fri, 18 May 2018 18:37:56 +0200 Subject: [PATCH] core: keep the kernel coredump defaults when systemd-coredump is disabled If systemd-coredump is disabled (at build time), PID1 should keep the (old) kernel defaults as they are. --- src/core/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/main.c b/src/core/main.c index 30dd4a23e8..d70c1b8160 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1473,7 +1473,7 @@ static void initialize_clock(void) { } static void initialize_coredump(bool skip_setup) { - +#if ENABLE_COREDUMP if (getpid_cached() != 1) return; @@ -1486,6 +1486,7 @@ static void initialize_coredump(bool skip_setup) { * until the systemd-coredump tool is enabled via sysctl. */ if (!skip_setup) disable_coredumps(); +#endif } static void do_reexecute( -- 2.25.1