summaryrefslogtreecommitdiff
path: root/src/core/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-17 19:16:33 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-07-18 10:14:02 +0900
commitd611cfa748aaf600832160132774074e808c82c7 (patch)
tree4a672398146f2478ce0a8c6eff57c4225aae6273 /src/core/service.c
parentea582a0f1b052330a45b5d7bbc9fb860d1c0d98b (diff)
downloadsystemd-d611cfa748aaf600832160132774074e808c82c7.tar.gz
core: never propagate reload failure to service result
Fixes: #11238
Diffstat (limited to 'src/core/service.c')
-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 65200ff687..bfbfa4be65 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -3524,7 +3524,7 @@ static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
service_exec_command_to_string(s->control_command_id),
code, status);
- if (s->result == SERVICE_SUCCESS)
+ if (s->state != SERVICE_RELOAD && s->result == SERVICE_SUCCESS)
s->result = f;
if (s->control_command &&