chiark / gitweb /
logind: don't busy loop if a job is still running but the delay timeout expires
[elogind.git] / src / login / logind.c
index 3b9da1985885990f78ab3360724990fa0c374992..536612cbd258c6430bb0af3b4fdba470720fbdb8 100644 (file)
@@ -1626,7 +1626,7 @@ int manager_run(Manager *m) {
 
                 manager_gc(m, true);
 
-                if (m->action_what != 0) {
+                if (m->action_what != 0 && !m->action_job) {
                         usec_t x, y;
 
                         x = now(CLOCK_MONOTONIC);