Overview
| Artifact ID: | 643fb62ba9301153ef120a75629854274c091d96 |
|---|---|
| Ticket: | 653218ffffffffffffffffffffffffffffffffff
Channels CloseProc() not called on close |
| User & Date: | schroedter on 2003-01-08 13:52:51 |
Changes
- icomment:
Logged In: YES user_id=99573 For blocking channels no changes are necessary. For non-blocking channels the current behaviour is to put the channel to *blocking* mode, wait until all Tcl output buffers are done and only then call Tcl_DriverCloseProc(). If there would be a non-default [fconfigure -discardonclose 1] option the channel system should 1. *Not* make the channel blocking. 2. Discard all pending output in Tcl buffers. 3. Immediately call Tcl_DriverCloseProc(). The serial SerialCloseProc() is responsive for the OS-level output. So SerialCloseProc() should also check for the [fconfigure -discardonclose 1] flag and discard OS-level output. I could write the TIP and implement the the changes in the serial drivers SerialCloseProc() for Windows & Posix. But I do not feel skilled for the changes in the general channel system.
- login: "schroedter"
- mimetype: "text/plain"
- username: "schroedter"