If there are no more jobs on console, no need/we shouldn't disable output.
}
case WATCH_IDLE_PIPE: {
}
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);
manager_unwatch_idle_pipe(m);
close_idle_pipe(m);
if (m->n_on_console == 0)
/* unset no_console_output flag, since the console is free */
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 ++;
}
} else
m->n_on_console ++;
}