Overview
| Artifact ID: | 8fca1cad6fef6a42cd6d8c72ee10fe00e8c5c3d6 |
|---|---|
| Ticket: | 525783ffffffffffffffffffffffffffffffffff
Need optional full flush on [exit] for serial |
| User & Date: | schroedter on 2002-06-24 18:08:44 |
Changes
- icomment:
Logged In: YES user_id=99573 As the author of the recent serial port changes (TIP#35) I'm supporting Donal's proposal of an additional fconfigure option: fconfigure $fd -onclose wait/discard This option should be general for *all* Tcl channels with the obvious default=wait (or flush). Please note that this cannot be done by the channel driver's [fconfigure] part because the channels driver cannot easily distinguish between a "normal flush" and a "flush-on-close" situation. Currently Tcl's channel system performs a blocking write before closing/exiting - Put the channel into blocking mode and - Write out all pending data This should be avoided by calling [fconfigure $chan -onclose discard]. It's really bad that a channel intentionally configured by the user as non-blocking becomes blocking at close. I assume that this could also be useful for other channels (sockets ?). Rolf. - login: "schroedter"
- mimetype: "text/plain"
- username: "schroedter"