]> err.no Git - systemd/commitdiff
manager: rearrange order of mainloop, put gc/cleanup last to maximize reusing
authorLennart Poettering <lennart@poettering.net>
Sun, 16 May 2010 01:57:56 +0000 (03:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 16 May 2010 01:57:56 +0000 (03:57 +0200)
manager.c

index 767533484ea09bf4685ef33895368e14ef99d187..89b210d6a39515919551275c38e87b668b689016 100644 (file)
--- a/manager.c
+++ b/manager.c
@@ -1949,19 +1949,19 @@ int manager_loop(Manager *m) {
                         sleep(1);
                 }
 
-                if (manager_dispatch_cleanup_queue(m) > 0)
+                if (manager_dispatch_load_queue(m) > 0)
                         continue;
 
-                if (manager_dispatch_gc_queue(m) > 0)
+                if (manager_dispatch_run_queue(m) > 0)
                         continue;
 
-                if (manager_dispatch_load_queue(m) > 0)
+                if (bus_dispatch(m) > 0)
                         continue;
 
-                if (manager_dispatch_run_queue(m) > 0)
+                if (manager_dispatch_cleanup_queue(m) > 0)
                         continue;
 
-                if (bus_dispatch(m) > 0)
+                if (manager_dispatch_gc_queue(m) > 0)
                         continue;
 
                 if (manager_dispatch_dbus_queue(m) > 0)