1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-23 13:57:33 +03:00

main: don't open console in --test mode

This commit is contained in:
Lennart Poettering 2010-04-23 23:26:19 +02:00
parent 3a76266192
commit 8d025b231b

2
main.c
View File

@ -615,7 +615,7 @@ int main(int argc, char *argv[]) {
/* Reset the console, but only if this is really init and we /* Reset the console, but only if this is really init and we
* are freshly booted */ * are freshly booted */
if (running_as == MANAGER_INIT) if (running_as == MANAGER_INIT && action == ACTION_RUN)
console_setup(getpid() == 1 && !serialization); console_setup(getpid() == 1 && !serialization);
/* Make sure D-Bus doesn't fiddle with the SIGPIPE handlers */ /* Make sure D-Bus doesn't fiddle with the SIGPIPE handlers */