We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 265df19 commit 0c3137fCopy full SHA for 0c3137f
contrib/win32/win32compat/termio.c
@@ -293,7 +293,10 @@ syncio_close(struct w32_io* pio)
293
CancelSynchronousIo(pio->read_overlapped.hEvent);
294
}
295
296
- WaitForSingleObject(pio->read_overlapped.hEvent, INFINITE);
+ // give the read thread some time to wind down, but don't block syncio_close
297
+ if (WAIT_TIMEOUT == WaitForSingleObject(pio->read_overlapped.hEvent, 1000)) {
298
+ debug4("read_overlapped thread timed out");
299
+ }
300
301
302
/* drain queued APCs */
0 commit comments