From: Lennart Poettering Date: Fri, 23 Apr 2010 21:26:19 +0000 (+0200) Subject: main: don't open console in --test mode X-Git-Tag: 0.git+20100605+dfd8ee-1~66 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d025b231b97da7b5cf908309f23e5af78bae4a4;p=systemd main: don't open console in --test mode --- diff --git a/main.c b/main.c index 5b23c937..d2721fd0 100644 --- a/main.c +++ b/main.c @@ -615,7 +615,7 @@ int main(int argc, char *argv[]) { /* Reset the console, but only if this is really init and we * are freshly booted */ - if (running_as == MANAGER_INIT) + if (running_as == MANAGER_INIT && action == ACTION_RUN) console_setup(getpid() == 1 && !serialization); /* Make sure D-Bus doesn't fiddle with the SIGPIPE handlers */