teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

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

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