]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: refuse --pty-late for Type=oneshot services 36765/head
authorMike Yuan <me@yhndnzj.com>
Sun, 16 Mar 2025 23:21:46 +0000 (00:21 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 17 Mar 2025 00:37:29 +0000 (01:37 +0100)
commit2fb10b3cfbfd4e9cc8de5f8dc90a6e7a83470561
treeb5cb5921a1ee88cd1b0ae331a39ccb542b9f4ee6
parent647ff4b65ec078ec384957268d7919be828fab62
run: refuse --pty-late for Type=oneshot services

Such combination makes no sense, as by the time the start job
of the oneshot service finishes the main process has already
exited.

Addresses https://github.com/systemd/systemd/pull/36691#discussion_r1988116881
src/run/run.c