From: Lennart Poettering Date: Wed, 8 Nov 2023 13:11:33 +0000 (+0100) Subject: execute: add comment explaining what stdio_as_fds does X-Git-Tag: v255-rc2~45^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F29929%2Fhead;p=thirdparty%2Fsystemd.git execute: add comment explaining what stdio_as_fds does --- diff --git a/src/core/execute.h b/src/core/execute.h index e15e19aae65..5a6927aa027 100644 --- a/src/core/execute.h +++ b/src/core/execute.h @@ -224,7 +224,11 @@ struct ExecContext { ExecInput std_input; ExecOutput std_output; ExecOutput std_error; + + /* At least one of stdin/stdout/stderr was initialized from an fd passed in. This boolean survives + * the fds being closed. This only makes sense for transient units. */ bool stdio_as_fds; + char *stdio_fdname[3]; char *stdio_file[3];