main: get exit value from wayland struct

This commit is contained in:
Daniel Eklöf 2019-10-30 20:26:08 +01:00
parent 644585a3e5
commit b7546abca9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

5
main.c
View file

@ -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);