Overview
| Artifact ID: | de561baa91d1c7af5f556ef35f18f857faf4a202 |
|---|---|
| Ticket: | 465765ffffffffffffffffffffffffffffffffff
zero-length write considered harmful |
| User & Date: | andreas_kupries on 2001-09-29 00:28:49 |
Changes
- icomment:
Logged In: YES user_id=75003 Enclosed is the patch I made. Jeff pointed out that there are possibly subtle problems with the patch as is: When writing to an OS channel an error like EPIPE can be returned. The specification and the manpage are not clear if this can happen for a zero-length write too. If that is so the patch changes the tcl level semantics of something like [puts - nonewline $chan ""]. Before the patch this command can fail, afterwards it won't (assuming a valid $chan). This is something any patch to avoid zero-length writes can run into. Opinions ?
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"