Merge pull request #32720 from poettering/hostnamed-no-varlink-exit-on-idle

hostnamed: exit-on-idle tweaks
This commit is contained in:
Yu Watanabe
2024-06-12 18:25:24 +09:00
committed by GitHub
12 changed files with 162 additions and 10 deletions
+3 -1
View File
@@ -122,7 +122,9 @@ int bus_event_loop_with_idle(
if (r == SD_EVENT_FINISHED)
break;
if (check_idle)
if (sd_bus_pending_method_calls(bus) > 0)
idle = false;
else if (check_idle)
idle = check_idle(userdata);
else
idle = true;