]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus/bus-track: use install_callback in sd_bus_track_add_name()
authorMichal Sekletar <msekleta@redhat.com>
Thu, 31 Jul 2025 16:26:09 +0000 (18:26 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 1 Aug 2025 17:09:44 +0000 (18:09 +0100)
commitdcf42d1ee21222ee698e5e0ab3ecf3411b63da40
tree5f2a42c2b557dfcaa809863fa0bef4078432b5da
parentd05a077f1620c980d27b50fff3c3f6577bc07eb1
sd-bus/bus-track: use install_callback in sd_bus_track_add_name()

Previously we didn't provide any install_callback to
sd_bus_add_match_async() so in case AddMatch() method call timed out we
destroyed the bus connection. This seems overly aggressive and simply
updating the sd_bus_track object accordingly should be enough.

Follow-up for 37ce3fd2b7dd8f81f6f4bca2003961a92b2963dc.

Fixes #32381
src/libsystemd/sd-bus/bus-track.c