Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 356f679d16687040cc6f833cd251dfdd9936f5db
Ticket: 813087ffffffffffffffffffffffffffffffffff
tclsh treats Unix pipelines as sockets
User & Date: cc_benny on 2003-09-26 21:58:47
Changes

  1. icomment:
    Logged In: YES 
    user_id=143885
    
    Preliminary points of analysis:
    
    - getsockopt() is called in tclUnixChan.c:Tcl_MakeFileChannel()
    to determine if a file handle is a socket.  For anonymous pipes
    this returns -1/ENOTSOCK on Linux as expected, but on Mac OS
    X (10.3.6) it returns 0, so the pipe is handled as a socket.
    
    - This happens in 8.4.4. In 8.3.4 getsockopt() is not called
    at all according to ktrace/strace. I haven't investigated the
    8.3 source yet, where the actual difference are here.
    
    
    
  2. login: "cc_benny"
  3. mimetype: "text/plain"
  4. username: "cc_benny"