mirror of
https://github.com/systemd/systemd.git
synced 2025-02-09 13:57:42 +03:00
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.
This commit is contained in:
parent
3b082a59d8
commit
752bcb770b
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user