summaryrefslogtreecommitdiffstats
path: root/src/coredump
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-01-10 18:37:54 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-10 18:44:09 +0100
commite557b1a655561906343918fa30959b53d16c3fdd (patch)
treeb6bf517903b95fa2b246f80eb9734756590a79b0 /src/coredump
parentmanager: rework manager_clean_environment() (diff)
downloadsystemd-e557b1a655561906343918fa30959b53d16c3fdd.tar.xz
systemd-e557b1a655561906343918fa30959b53d16c3fdd.zip
util: minor tweaks to disable_core_dumps()
First, let's rename it to disable_coredumps(), as in the rest of our codebase we spell it "coredump" rather than "core_dump", so let's stick to that. However, also log about failures to turn off core dumpling on LOG_DEBUG, because debug logging is always a good idea.
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index f83a951df7..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.");
- disable_core_dumps();
+ disable_coredumps();
}
set_iovec_field(iovec, n_iovec, "COREDUMP_UNIT=", context[CONTEXT_UNIT]);