mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Fix extra close for loops with no signal_read_fd
This commit is contained in:
parent
022634f2d9
commit
c0ff39c59d
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ free_loop_data(LoopData *ld) {
|
|||
CLOSE(signal_fds, 0); CLOSE(signal_fds, 1);
|
||||
#endif
|
||||
#undef CLOSE
|
||||
if (ld->signal_read_fd) {
|
||||
if (ld->signal_read_fd > -1) {
|
||||
#ifdef HAS_SIGNAL_FD
|
||||
safe_close(ld->signal_read_fd, __FILE__, __LINE__);
|
||||
SIGNAL_SET
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue