From 561c1529be6220633c0948afc5009caf054526c6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 8 Nov 2023 14:11:33 +0100 Subject: [PATCH] execute: add comment explaining what stdio_as_fds does --- src/core/execute.h | 4 ++++ 1 file changed, 4 insertions(+) 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];