diff options
author | Franck Bui <fbui@suse.com> | 2018-05-18 18:37:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-05-18 20:37:54 +0200 |
commit | 752bcb770bcea96144c7e2e7eb7dc4bc9108d0bb (patch) | |
tree | 89fb9f7ba1dce0959dec275691574a6c1b81780c | |
parent | 3b082a59d8a4213418fe7acfdbc4ae08b56ff38d (diff) | |
download | systemd-752bcb770bcea96144c7e2e7eb7dc4bc9108d0bb.tar.gz |
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.
-rw-r--r-- | src/core/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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( |