From 1e22b5cda04b6d5e0dd83ab8e6ecb452cf34851f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Jan 2016 16:25:39 +0100 Subject: 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 --- src/core/dbus-service.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/dbus-service.c') diff --git a/src/core/dbus-service.c b/src/core/dbus-service.c index 24f611a593..2529689f5a 100644 --- a/src/core/dbus-service.c +++ b/src/core/dbus-service.c @@ -153,6 +153,8 @@ static int bus_service_set_transient_property( asynchronous_close(s->stderr_fd); s->stderr_fd = copy; } + + s->exec_context.stdio_as_fds = true; } return 1; -- cgit v1.2.3-54-g00ecf