summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-01 00:48:05 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-01 00:48:05 +0200
commitf5a501146a426d95daa6d67d832b2ab339befbae (patch)
treeb092baffad7725f556663b589ed2bfd4cb905b91 /src
parentfe71c02cf5aefad46e6662b2bbdf744975b43991 (diff)
service: wait for process exit only if we actually killed somebody
Diffstat (limited to 'src')
-rw-r--r--src/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 85dd5d4175..2fec3ea8c9 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);