mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 14:28:30 +00:00
Check for interrupts more eagerly on Windows
This commit is contained in:
parent
94ea34367a
commit
eb84a25994
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ textwindows int __wsablock(struct Fd *fd, struct NtOverlapped *overlapped,
|
|||
_unassert(CancelIoEx(fd->handle, overlapped) ||
|
||||
WSAGetLastError() == kNtErrorNotFound);
|
||||
errno = e;
|
||||
} else {
|
||||
if (_check_interrupts(restartable, g_fds.p)) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
for (;;) {
|
||||
i = WSAWaitForMultipleEvents(1, &overlapped->hEvent, true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue