Blame SOURCES/0216-core-never-propagate-reload-failure-to-service-resul.patch

ddca0b
From cffe5d0e781f6fa7f2275b94d2dcc26e00859a78 Mon Sep 17 00:00:00 2001
ddca0b
From: Lennart Poettering <lennart@poettering.net>
ddca0b
Date: Wed, 17 Jul 2019 19:16:33 +0200
ddca0b
Subject: [PATCH] core: never propagate reload failure to service result
ddca0b
ddca0b
Fixes: #11238
ddca0b
(cherry picked from commit d611cfa748aaf600832160132774074e808c82c7)
ddca0b
ddca0b
Resolves: #1735787
ddca0b
---
ddca0b
 src/core/service.c | 2 +-
ddca0b
 1 file changed, 1 insertion(+), 1 deletion(-)
ddca0b
ddca0b
diff --git a/src/core/service.c b/src/core/service.c
ddca0b
index 8342c131c8..24f167572a 100644
ddca0b
--- a/src/core/service.c
ddca0b
+++ b/src/core/service.c
ddca0b
@@ -3310,7 +3310,7 @@ static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
ddca0b
                               "Control process exited, code=%s status=%i",
ddca0b
                               sigchld_code_to_string(code), status);
ddca0b
 
ddca0b
-                if (s->result == SERVICE_SUCCESS)
ddca0b
+                if (s->state != SERVICE_RELOAD && s->result == SERVICE_SUCCESS)
ddca0b
                         s->result = f;
ddca0b
 
ddca0b
                 if (s->control_command &&