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 19:43:43 +02:00
parent 3ad2afb6a2
commit 7a35fa24ff
+5 -1
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;
}