Only disable output on console during boot if needed

If there are no more jobs on console, no need/we shouldn't disable output.
This commit is contained in:
Olivier Brunel 2013-09-20 22:18:29 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 8aa5429a4a
commit 2f38577f30
2 changed files with 2 additions and 2 deletions

View file

@ -1789,7 +1789,7 @@ static int process_event(Manager *m, struct epoll_event *ev) {
}
case WATCH_IDLE_PIPE: {
m->no_console_output = true;
m->no_console_output = m->n_on_console > 0;
manager_unwatch_idle_pipe(m);
close_idle_pipe(m);

View file

@ -1492,7 +1492,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_su
if (m->n_on_console == 0)
/* unset no_console_output flag, since the console is free */
m->no_console_output = 0;
m->no_console_output = false;
} else
m->n_on_console ++;
}