Overview
| Artifact ID: | 8b29a1aca6b15bc867ede0297f028dc903333ec3 |
|---|---|
| Ticket: | 3545365fffffffffffffffffffffffffffffffff
Crash in io-29.33b (no implicit flush of nonblocking on exit |
| User & Date: | ferrieux on 2012-07-24 20:20:55 |
Changes
- icomment:
Digging further in the Windows pipe driver, I understand the following: - due to OS limitations (some long gone, hysterical raisins), the pipe driver uses a pair of threads for each pipe - there is some signalling between the main thread and them, at the beginning of an operation - however, once (e.g.) a write is started, a stubborn WriteFile loop will keep trying until it's done or a SIGPIPE comes up the pipe. - this is notably the case when (as in io-29.33b) a background flush runs on a stalled pipe - in the current design it is impossible to cleanly stop the writer thread to cancel the write as per TIP#398 - at the moment I can see two options: (1) try some hackery with a CloseHandle in the main thread, hoping it will interrupt the WriteFile (does it ?); (2) cheat by leaving the thread and pipe to their destiny, marking as CHANNEL_DEAD although not much has been truly deallocated. Expert advice dearly expected.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"