From: Mike Yuan Date: Wed, 29 Oct 2025 21:03:02 +0000 (+0100) Subject: core/service: also pass sockets to control processes when stdio is named fd X-Git-Tag: v259-rc1~217^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d93fff5c0c670554533f2296e24d5066a89e383a;p=thirdparty%2Fsystemd.git core/service: also pass sockets to control processes when stdio is named fd --- diff --git a/src/core/service.c b/src/core/service.c index e1cc618fc4d..3d7861f377c 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1743,9 +1743,9 @@ static int service_spawn_internal( exec_params.open_files = s->open_files; - } else if (s->exec_context.std_input == EXEC_INPUT_SOCKET || - s->exec_context.std_output == EXEC_OUTPUT_SOCKET || - s->exec_context.std_error == EXEC_OUTPUT_SOCKET) { + } else if (IN_SET(s->exec_context.std_input, EXEC_INPUT_SOCKET, EXEC_INPUT_NAMED_FD) || + IN_SET(s->exec_context.std_output, EXEC_OUTPUT_SOCKET, EXEC_OUTPUT_NAMED_FD) || + IN_SET(s->exec_context.std_error, EXEC_OUTPUT_SOCKET, EXEC_OUTPUT_NAMED_FD)) { r = service_collect_fds(s, &exec_params.fds,