i3bar: Properly close FDs
This commit is contained in:
parent
31580ddc7f
commit
0370c5e297
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user