diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-18 05:07:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-18 18:21:27 +0100 |
commit | 99f098257f5e4135609edc3df965ebf27975df18 (patch) | |
tree | 089806a90a2d3febd1b9b527585ae86f06afe10b /src/shared/log.c | |
parent | bf108e5541e2a3cbc6f0c59e93665eceb7a5ce05 (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/shared/log.c')
-rw-r--r-- | src/shared/log.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/shared/log.c b/src/shared/log.c index 2517f5d780..85ed6ecb67 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -272,8 +272,6 @@ int log_open(void) { log_close_journal(); log_close_syslog(); - /* Get the real /dev/console if we are PID=1, hence reopen */ - log_close_console(); return log_open_console(); } |