diff options
Diffstat (limited to 'i3bar/src/main.c')
-rw-r--r-- | i3bar/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i3bar/src/main.c b/i3bar/src/main.c index 4e93bb02..ce5257bf 100644 --- a/i3bar/src/main.c +++ b/i3bar/src/main.c @@ -185,12 +185,12 @@ int main(int argc, char **argv) { ev_signal_start(main_loop, sig_int); ev_signal_start(main_loop, sig_hup); + atexit(kill_children_at_exit); + /* From here on everything should run smooth for itself, just start listening for * events. We stop simply stop the event loop, when we are finished */ ev_loop(main_loop, 0); - kill_child(); - clean_xcb(); ev_default_destroy(); |