From b7546abca9828fb9017b801ed00a1d4f97044a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 30 Oct 2019 20:26:08 +0100 Subject: [PATCH] main: get exit value from wayland struct --- main.c | 5 +++-- 1 file 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);