]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-wait-for-units: correctly report state if disconnected from bus
authorMike Yuan <me@yhndnzj.com>
Mon, 1 Jan 2024 09:19:35 +0000 (17:19 +0800)
committerMike Yuan <me@yhndnzj.com>
Mon, 1 Jan 2024 10:42:24 +0000 (18:42 +0800)
src/shared/bus-wait-for-units.c

index d73fff3dc1f3161b8a8a5d3551a00ea3e2c34ce3..49963ffe3412a553da69e3a838a7ba658481a22c 100644 (file)
@@ -114,7 +114,7 @@ static int match_disconnected(sd_bus_message *m, void *userdata, sd_bus_error *e
         bus_wait_for_units_clear(d);
 
         if (d->ready_callback)
-                d->ready_callback(d, false, d->userdata);
+                d->ready_callback(d, BUS_WAIT_FAILURE, d->userdata);
         else /* If no ready callback is specified close the connection so that the event loop exits */
                 sd_bus_close(sd_bus_message_get_bus(m));