summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-06-26 11:32:30 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-06-26 11:32:30 +0200
commite201a0384da94f57f65c951a97d8ddaf990d6240 (patch)
treec6b13845940b855e97de049516f48101c313199c /src/core
parent11901ad59689002aa7bbf598e76617f1cfeebd34 (diff)
service: fix incorrect argument
The last argument to service_enter_dead() is bool allow_restart, not a service result.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/service.c b/src/core/service.c
index ec6aaa55c5..e598f9b279 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -3227,7 +3227,7 @@ static void service_cgroup_notify_event(Unit *u) {
case SERVICE_FINAL_SIGTERM:
case SERVICE_FINAL_SIGKILL:
if (main_pid_good(s) <= 0 && !control_pid_good(s))
- service_enter_dead(s, SERVICE_SUCCESS, SERVICE_SUCCESS);
+ service_enter_dead(s, SERVICE_SUCCESS, true);
break;