mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
core: simplify manager_recheck_journal() a bit
No need for an if check if we just pass along a bool anyway.
This commit is contained in:
parent
217677abb0
commit
cedf508886
@ -3601,16 +3601,10 @@ void manager_recheck_journal(Manager *m) {
|
||||
if (getpid_cached() != 1)
|
||||
return;
|
||||
|
||||
if (manager_journal_is_running(m)) {
|
||||
|
||||
/* The journal is fully and entirely up? If so, let's permit logging to it, if that's configured. */
|
||||
log_set_prohibit_ipc(false);
|
||||
} else {
|
||||
|
||||
/* If the journal is down, don't ever log to it, otherwise we might end up deadlocking ourselves as we
|
||||
* might trigger an activation ourselves we can't fulfill */
|
||||
log_set_prohibit_ipc(true);
|
||||
}
|
||||
/* The journal is fully and entirely up? If so, let's permit logging to it, if that's configured. If the
|
||||
* journal is down, don't ever log to it, otherwise we might end up deadlocking ourselves as we might trigger
|
||||
* an activation ourselves we can't fulfill. */
|
||||
log_set_prohibit_ipc(!manager_journal_is_running(m));
|
||||
log_open();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user