diff options
author | Daniel Mack <github@zonque.org> | 2016-01-28 17:37:06 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2016-01-28 17:37:06 +0100 |
commit | 9e83569d8ff219730912ecac441843b9531b079c (patch) | |
tree | 12dbaa356557f24bbe08458e8391610a52932dc1 /src/core/service.c | |
parent | cd72d2044ad28b475bf84a38ba6db45292467dd8 (diff) | |
parent | ad6b1fa287c1d007fd85aa3e85b7e4a6bc7f515f (diff) |
Merge pull request #2463 from poettering/machined-tty-fix
Fixes for the service TTY reset logic and other stuff
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/service.c b/src/core/service.c index ae84cccbc8..355de3e15d 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -2363,6 +2363,7 @@ static int service_deserialize_item(Unit *u, const char *key, const char *value, else { asynchronous_close(s->stdin_fd); s->stdin_fd = fdset_remove(fds, fd); + s->exec_context.stdio_as_fds = true; } } else if (streq(key, "stdout-fd")) { int fd; @@ -2372,6 +2373,7 @@ static int service_deserialize_item(Unit *u, const char *key, const char *value, else { asynchronous_close(s->stdout_fd); s->stdout_fd = fdset_remove(fds, fd); + s->exec_context.stdio_as_fds = true; } } else if (streq(key, "stderr-fd")) { int fd; @@ -2381,6 +2383,7 @@ static int service_deserialize_item(Unit *u, const char *key, const char *value, else { asynchronous_close(s->stderr_fd); s->stderr_fd = fdset_remove(fds, fd); + s->exec_context.stdio_as_fds = true; } } else log_unit_debug(u, "Unknown serialization key: %s", key); |