chiark / gitweb /
manager: switch SIGUSR1 and SIGSUR2, to follow upstart's scheme a little
authorLennart Poettering <lennart@poettering.net>
Sat, 24 Apr 2010 02:27:05 +0000 (04:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 24 Apr 2010 02:27:05 +0000 (04:27 +0200)
manager.c

index cf1c148..1691719 100644 (file)
--- a/manager.c
+++ b/manager.c
@@ -1816,12 +1816,7 @@ static int manager_process_signal_fd(Manager *m) {
                         /* This is a nop on non-init */
                         break;
 
-                case SIGUSR1:
-                        manager_dump_units(m, stdout, "\t");
-                        manager_dump_jobs(m, stdout, "\t");
-                        break;
-
-                case SIGUSR2:  {
+                case SIGUSR1: {
                         Unit *u;
 
                         u = manager_get_unit(m, SPECIAL_DBUS_SERVICE);
@@ -1840,6 +1835,11 @@ static int manager_process_signal_fd(Manager *m) {
                         break;
                 }
 
+                case SIGUSR2:
+                        manager_dump_units(m, stdout, "\t");
+                        manager_dump_jobs(m, stdout, "\t");
+                        break;
+
                 case SIGHUP:
                         m->exit_code = MANAGER_RELOAD;
                         break;