1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

core: try to recover from failed reloads

Let's simply continue with everything we loaded, in the hope it's
somewhat useful.
This commit is contained in:
Lennart Poettering 2018-10-09 17:56:54 +02:00
parent 3ad2afb6a2
commit 7a35fa24ff

View File

@ -1698,7 +1698,11 @@ static int invoke_main_loop(
if (saved_log_target >= 0)
manager_override_log_target(m, saved_log_target);
(void) manager_reload(m);
r = manager_reload(m);
if (r < 0)
/* Reloading failed before the point of no return. Let's continue running as if nothing happened. */
m->objective = MANAGER_OK;
break;
}