Fix for kitty sometimes not detecting child death on macOS

This commit is contained in:
Kovid Goyal
2017-12-13 22:20:11 +05:30
parent b9d0ec0d4c
commit 7f19424f2d
3 changed files with 12 additions and 8 deletions

View File

@@ -108,6 +108,9 @@ handle_sigchld(int UNUSED signum, siginfo_t *sinfo, void UNUSED *unused) {
if (errno != EINTR) break;
} else break;
}
// wakeup I/O loop as without this on macOS sometimes poll() does not detect the fd close, so
// kitty does not detect child death.
wakeup_io_loop(true);
errno = sav_errno;
}