Overview
| Artifact ID: | 9a765ab872c589d57067ec3e32b2b0cc1cc6fe3b |
|---|---|
| Ticket: | 3545365fffffffffffffffffffffffffffffffff
Crash in io-29.33b (no implicit flush of nonblocking on exit |
| User & Date: | ferrieux on 2012-07-24 20:05:32 |
Changes
- icomment:
As promised, details on the blocking behavior on Windows. On Jos's gdb attached to the nonblocking-write+exit child, we see that the exit is blocked by the ChanClose in FinalizeIO, done on a still-nonblocking channel. ChanClose itself calls the platform-specific pipe driver PipeClose2Proc, which blocks at the following code: /* * 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. */ WaitForSingleObject(pipePtr->writable, INFINITE); Apparently the theorem in the comment is proved wrong :( Andreas, any idea ? - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"