]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: check if the start job is finished on PropertiesChanged signal and so on 36691/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Mar 2025 20:15:11 +0000 (05:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 Mar 2025 19:33:46 +0000 (04:33 +0900)
commit1ac2fc498429aed0be144e31c827314e3c49b202
tree799175bfed36b1542d73fb57da346aec43d7e0cf
parent07355061db88d95b81cfdc3510eb57a0940daac1
run: check if the start job is finished on PropertiesChanged signal and so on

Otherwise, if systemd-run is disconnected from bus before JobRemoved
signal, then c->start_job will never freed, thus run_context_check_done()
will never call sd_event_exit() even after the service is finished.

This drops monitoring JobRemoved signal, and make systemd-run check if
the start job is started when PropertiesChanged signal is received.

Follow-up for b7ba8d55b8e413ff326abc4814b92d42b8d3c3c3.

Fixes #36679.
src/run/run.c