From: Franck Bui Date: Fri, 18 May 2018 16:37:56 +0000 (+0200) Subject: core: keep the kernel coredump defaults when systemd-coredump is disabled X-Git-Tag: v239~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=752bcb770bcea96144c7e2e7eb7dc4bc9108d0bb;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/core/main.c b/src/core/main.c index 30dd4a23e86..d70c1b8160e 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(