Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: de561baa91d1c7af5f556ef35f18f857faf4a202
Ticket: 465765ffffffffffffffffffffffffffffffffff
zero-length write considered harmful
User & Date: andreas_kupries on 2001-09-29 00:28:49
Changes

  1. 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 ?
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"