From 8d5c7661a7fafa372fc3a7b411500cc3ba10a9b6 Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Sat, 27 Jan 2018 18:02:06 +0000 Subject: [PATCH] systemd-shutdown: use log_set_prohibit_ipc(true) Now we have log_set_prohibit_ipc(), let's use it to clarify that systemd-shutdown is not expected to try and log via journald (which it is about to kill). We avoided ever asking systemd-shutdown to do this, but it's more convenient for the reader if they don't have to think about that. In that sense, it's similar to using assert() to validate a function's arguments. --- src/core/shutdown.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/shutdown.c b/src/core/shutdown.c index 167c6a9..cc31b33 100644 --- a/src/core/shutdown.c +++ b/src/core/shutdown.c @@ -284,6 +284,7 @@ int main(int argc, char *argv[]) { /* journald will die if not gone yet. The log target defaults * to console, but may have been changed by command line options. */ + log_set_prohibit_ipc(true); log_open(); umask(0022); -- 2.7.4