]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: when disconnected from PTY forwarder, exit event loop if not --wait
authorMike Yuan <me@yhndnzj.com>
Tue, 21 May 2024 12:10:24 +0000 (20:10 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 21 May 2024 13:30:32 +0000 (21:30 +0800)
commit2b4a691c32aadbc45491c8b243ec3cf7ed910f55
treefb5f7cf0ac3a81fd3e67c61cc2358f9ab8b164ee
parentd735753256c1e0f3e9a4efaab17ba9ee47650403
run: when disconnected from PTY forwarder, exit event loop if not --wait

Follow-up for ade0789fabbf01b95bf54d32f8cab1217a753f03

The change in behavior was partly intentional, as I think
if both --wait and --pty are used, manually disconnecting
from PTY forwarder should not result in systemd-run exiting
with "Finished with ..." log. But we should check for
--wait here.

Closes #32953
src/run/run.c