assert(m);
- /* Avoid recursion */
- if (m->dispatching_dbus_queue)
- return 0;
-
/* When we are reloading, let's not wait with generating signals, since we need to exit the manager as quickly
* as we can. There's no point in throttling generation of signals in that case. */
if (MANAGER_IS_RELOADING(m) || m->send_reloading_done || m->pending_reload_message)
budget = MANAGER_BUS_MESSAGE_BUDGET;
}
- m->dispatching_dbus_queue = true;
-
while (budget != 0 && (u = m->dbus_unit_queue)) {
assert(u->in_dbus_queue);
budget--;
}
- m->dispatching_dbus_queue = false;
-
if (m->send_reloading_done) {
m->send_reloading_done = false;
bus_manager_send_reloading(m, false);