1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

core: never propagate reload failure to service result

Fixes: #11238
This commit is contained in:
Lennart Poettering 2019-07-17 19:16:33 +02:00 committed by Yu Watanabe
parent ea582a0f1b
commit d611cfa748

View File

@ -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 &&