[systemd-commits] src/service.c

Lennart Poettering lennart at kemper.freedesktop.org
Tue Aug 31 15:48:11 PDT 2010


 src/service.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f5a501146a426d95daa6d67d832b2ab339befbae
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Sep 1 00:48:05 2010 +0200

    service: wait for process exit only if we actually killed somebody

diff --git a/src/service.c b/src/service.c
index 85dd5d4..2fec3ea 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1620,7 +1620,7 @@ static void service_enter_signal(Service *s, ServiceState state, bool success) {
                         if ((r = cgroup_bonding_kill_list(s->meta.cgroup_bondings, sig, pid_set)) < 0) {
                                 if (r != -EAGAIN && r != -ESRCH && r != -ENOENT)
                                         log_warning("Failed to kill control group: %s", strerror(-r));
-                        } else
+                        } else if (r > 0)
                                 wait_for_exit = true;
 
                         set_free(pid_set);


More information about the systemd-commits mailing list