]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
execute: add comment explaining what stdio_as_fds does 29929/head
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Nov 2023 13:11:33 +0000 (14:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Nov 2023 20:38:26 +0000 (21:38 +0100)
src/core/execute.h

index e15e19aae65aa4be6a9274e495f7f18112a65b9c..5a6927aa02730a25a733a4ecb6608fd6004cb377 100644 (file)
@@ -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];