From: Michal Schmidt Date: Tue, 26 Jun 2012 09:32:30 +0000 (+0200) Subject: service: fix incorrect argument X-Git-Tag: v186~85 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=e201a0384da94f57f65c951a97d8ddaf990d6240;hp=11901ad59689002aa7bbf598e76617f1cfeebd34 service: fix incorrect argument The last argument to service_enter_dead() is bool allow_restart, not a service result. --- diff --git a/src/core/service.c b/src/core/service.c index ec6aaa55c..e598f9b27 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;