i3bar: Properly close FDs

This commit is contained in:
Orestis Floros 2021-01-12 08:34:34 +01:00
parent 31580ddc7f
commit 0370c5e297
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
2 changed files with 5 additions and 0 deletions

View File

@ -24,3 +24,4 @@ strongly encouraged to upgrade.
• fix workspaces not moving to assigned output after output becomes available
• fix duplicate bindcode after i3-config-wizard
• clear pixmap before drawing to prevent visual grabage in clients using 'Shape'
• i3bar: properly close file descriptors

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) {