Overview
| Artifact ID: | ef620f54bb0c5d2788f435670a600fd9d2b24cfd |
|---|---|
| Ticket: | 3545365fffffffffffffffffffffffffffffffff
Crash in io-29.33b (no implicit flush of nonblocking on exit |
| User & Date: | ferrieux on 2012-07-24 23:59:59 |
Changes
- icomment:
Twylite identified the missing signalling of the stopWriter event ! Update: Index: win/tclWinPipe.c =================================================================== --- win/tclWinPipe.c +++ win/tclWinPipe.c @@ -1878,10 +1878,17 @@ * Wait for the writer thread to finish the current buffer, then * terminate the thread and close the handles. If the channel is * nonblocking, there should be no pending write operations. */ + /* ALEX - ugly hack to check inter-thread io cancellation */ + if (pipePtr->flags & PIPE_ASYNC) { + pipePtr->toWrite=0; + CloseHandle (((WinFile *)pipePtr->writeFile)->handle); + SetEvent(pipePtr->stopWriter); + } + WaitForSingleObject(pipePtr->writable, INFINITE); /* * The thread may already have closed on it's own. Check its exit * code. @@ -3140,8 +3147,9 @@ /* * Local Variables: * mode: c * c-basic-offset: 4 + * tab-width: 8 * fill-column: 78 * End: */ - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"