summaryrefslogtreecommitdiff
path: root/src/core/shutdown.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-18 05:07:34 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-18 18:21:27 +0100
commit99f098257f5e4135609edc3df965ebf27975df18 (patch)
tree089806a90a2d3febd1b9b527585ae86f06afe10b /src/core/shutdown.c
parentbf108e5541e2a3cbc6f0c59e93665eceb7a5ce05 (diff)
log: don't reopen /dev/console each time we call log_open()
Instead, force reopen it only if we really really have to.
Diffstat (limited to 'src/core/shutdown.c')
-rw-r--r--src/core/shutdown.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/shutdown.c b/src/core/shutdown.c
index 31129b7697..8420a67535 100644
--- a/src/core/shutdown.c
+++ b/src/core/shutdown.c
@@ -155,6 +155,7 @@ int main(int argc, char *argv[]) {
log_parse_environment();
log_set_target(LOG_TARGET_CONSOLE); /* syslog will die if not gone yet */
+ log_close_console(); /* force reopen of /dev/console */
log_open();
umask(0022);