aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:26:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:26:08 +0000
commitb7546abca9828fb9017b801ed00a1d4f97044a2a (patch)
tree65699c9a37e9b18eb6342942b3b900965df86176 /main.c
parentterm: term_shutdown(): set exit value in wayland (diff)
main: get exit value from wayland struct
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index ebc35a20..9a843b12 100644
--- a/main.c
+++ b/main.c
@@ -158,9 +158,10 @@ main(int argc, char *const *argv)
out:
shm_fini();
- int child_ret = EXIT_SUCCESS;
tll_foreach(wayl->terms, it)
- child_ret = term_destroy(it->item);
+ term_destroy(it->item);
+
+ int child_ret = wayl->last_exit_value;
wayl_destroy(wayl);
fdm_destroy(fdm);