aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index ff839507..4011dcde 100644
--- a/main.c
+++ b/main.c
@@ -642,14 +642,14 @@ main(int argc, char *const *argv)
goto out;
}
+ ret = EXIT_SUCCESS;
while (likely(!aborted && (as_server || tll_length(wayl->terms) > 0))) {
- if (unlikely(!fdm_poll(fdm)))
+ if (unlikely(!fdm_poll(fdm))) {
+ ret = foot_exit_failure;
break;
+ }
}
- if (aborted || tll_length(wayl->terms) == 0)
- ret = EXIT_SUCCESS;
-
out:
free(_cwd);
server_destroy(server);