]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: transition job to JOB_FINISHED on uninstall 41583/head
authorMichael Vogt <michael@amutable.com>
Mon, 27 Apr 2026 11:12:30 +0000 (13:12 +0200)
committerMichael Vogt <michael@amutable.com>
Tue, 28 Apr 2026 07:01:54 +0000 (09:01 +0200)
commit328fd964a91e120c4ea7edde6d1c5c9688123175
tree72fa00d7e4dc67097be4a0494e626f8e649999d0
parent1cde1cc3bab595fe7b4e2befbfa08a01a172db0f
core: transition job to JOB_FINISHED on uninstall

When a job reaches the job_uninstall() stage we used to set the
state to JOB_WAITING. However now that we have a JOB_FINISHED state [1]
we should use that instead. This is more accurate so when
varlink_job_send_removed_signal() is called the job is in the expected
state and that is what the user will see.

Note that this does not change the D-Bus API because there
bus_job_send_removed_signal() doesn't send the state, it only sends
the result.

[1] https://github.com/systemd/systemd/pull/41811
src/core/job.c
src/core/varlink-unit.c