i3bar: Properly close FDs

This commit is contained in:
Orestis Floros
2021-01-12 08:34:34 +01:00
parent 31580ddc7f
commit 0370c5e297
2 changed files with 5 additions and 0 deletions

View File

@@ -139,6 +139,10 @@ static void cleanup(void) {
if (stdin_io != NULL) {
ev_io_stop(main_loop, stdin_io);
FREE(stdin_io);
close(stdin_fd);
stdin_fd = 0;
close(child_stdin);
child_stdin = 0;
}
if (child_sig != NULL) {