core: don't reset /dev/console if stdin/stdout/stderr as passed as fd in a transient service

Otherwise we might end resetting /dev/console all the time when a transient service starts or stops.

Fixes #2377
Fixes #2198
Fixes #2061
This commit is contained in:
Lennart Poettering
2016-01-28 16:25:39 +01:00
parent cd72d2044a
commit 1e22b5cda0
5 changed files with 50 additions and 25 deletions
+2
View File
@@ -122,6 +122,8 @@ struct ExecContext {
nsec_t timer_slack_nsec;
bool stdio_as_fds;
char *tty_path;
bool tty_reset;