]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: invoke_main_loop() does not return MANAGER_RELOAD
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 19 May 2024 05:21:28 +0000 (14:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Jun 2024 09:31:41 +0000 (18:31 +0900)
Follow-up for 5409c6fcc55e6700360546c42edd4a021ee5014e.

src/core/main.c

index 4b8a315d860955c90e7b84fdde22e21a3a5ee529..e49252b31071179c17da29dae28c95fdeaf963ce 100644 (file)
@@ -3295,8 +3295,7 @@ int main(int argc, char *argv[]) {
                              &switch_root_dir,
                              &switch_root_init,
                              &error_message);
-        assert(r < 0 || IN_SET(r, MANAGER_EXIT,          /* MANAGER_OK is not expected here. */
-                                  MANAGER_RELOAD,
+        assert(r < 0 || IN_SET(r, MANAGER_EXIT,          /* MANAGER_OK and MANAGER_RELOAD are not expected here. */
                                   MANAGER_REEXECUTE,
                                   MANAGER_REBOOT,
                                   MANAGER_SOFT_REBOOT,