]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pid1: properly report if we managed to kill a process by cgroup
authorLennart Poettering <lennart@poettering.net>
Mon, 30 Jun 2025 12:53:30 +0000 (14:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 8 Jul 2025 00:32:42 +0000 (02:32 +0200)
src/core/unit.c

index ff6bac576de43c8b8c409e879830ad2095dd737c..1feb5226554c67908a1c81ccfd3efd1a00649026 100644 (file)
@@ -4136,7 +4136,7 @@ int unit_kill(
                                                         "Failed to send signal SIG%s to auxiliary processes on client request: %m",
                                                         signal_to_string(signo)));
                         }
-                        killed = killed || r >= 0;
+                        killed = killed || r > 0;
                 }
         }