]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/exec-invoke: split out maybe_inherit_stdout_from_stdin(), use exec_input_is_inhe...
authorMike Yuan <me@yhndnzj.com>
Sat, 22 Nov 2025 18:23:53 +0000 (19:23 +0100)
committerLuca Boccassi <bluca@debian.org>
Wed, 17 Dec 2025 23:23:22 +0000 (23:23 +0000)
commita8e1796b09f8fa634b1ef2624836bfa326b2ca95
treef125b5349e7b1f5011b30b2d2b6b9b0dd9764fbd
parente04382384de4d70d2d9178138ea7a68b304397ed
core/exec-invoke: split out maybe_inherit_stdout_from_stdin(), use exec_input_is_inheritable()

Note that exec_input_is_inheritable() rightfully refuses EXEC_INPUT_FILE,
in which case std_output would have been reset in service_fix_stdio()
already.

While at it, use the generic fallback logic of first trying user manager
stdout when stdin is not writable.
src/core/exec-invoke.c