chiark / gitweb /
machine_kill(): Don't kill the unit when killing the leader
[elogind.git] / src / machine / machine.c
index 1c9177e1c379b9a60ad2a7424b42bf2b8af8b4a6..13d3448adf47422ce66a6da43bfc82fd7e5de664 100644 (file)
@@ -493,6 +493,8 @@ int machine_kill(Machine *m, KillWho who, int signo) {
 
                 if (kill(m->leader, signo) < 0)
                         return -errno;
+
+                return 0;
         }
 
         /* Otherwise make PID 1 do it for us, for the entire cgroup */