Skip to content
Tcl Source Code History Of Ticket 689835ffffffffff
Login

History Of Ticket 689835ffffffffff

Artifacts Associated With Ticket 689835ffffffffff

  1. Ticket change [21e71b39bf] (rid 130661) by das on 2003-02-20 05:19:39:

    1. assignee initialized to: "das"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      on Mac OS X, trying to read e.g. from stdout when it is a 
      pipe will not fail as on other platforms but block forever in 
      the recv() in TcpInputProc().
      
      this has been a long standing very annoying bug that 
      among others things interferes with the workings of 'make 
      test', e.g. "test io-32.1" will hang when it tries to [read 
      stdout] because stdout is a pipe when io.test is run from 
      tests/all.tcl
      
      I have now found an effective & simple workaround that 
      AFAICT does not have any negative implications on other 
      unices:
      
      when creating a socket channel in Tcl_MakeFileChannel(), 
      the mode argument cannot be passed to 
      Tcl_MakeTcpClientChannel() as noted in the comments.
      I've now added a static MakeTcpClientChannelMode() 
      taking a mode argument and use this from 
      Tcl_MakeFileChannel().
      Tcl_MakeTcpClientChannel() simply calls through to 
      MakeTcpClientChannelMode() with the default mode.
      
      so for writeonly files like stdout, the channel will now be 
      marked as writeonly even when it is based on a socket fd, 
      and thus reading from the channel will fail before the recv() 
      is ever attempted, thus working around the macosx 
      problem.
      
      c.f. attached patch for implementation.
      
    4. foundin initialized to: "obsolete: 8.4.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "das"
    9. subsystem initialized to: "27. Channel Types"
    10. title initialized to: "macosx: reading from write-only pipe hangs"
    11. type initialized to: "Bug"
  2. Ticket change [f355fd8b13] (rid 129690) by das on 2003-02-20 12:27:52:

    1. priority changed to: "9 Immediate"
  3. Ticket change [1001ed7c23] (rid 94888) by das on 2003-02-20 12:27:53:

    1. assignee changed to: "hobbs"
    2. icomment:
      
      
      File Added - 42947: tclUnixChan.diff
      
      Logged In: YES 
      user_id=90580
      
      Jeff, 
      could you possibly take a look at reviewing this? the changes 
      are minor and shouldn't have any wider implications AFAICT.
      
      it would be great if this could go into 8.4.2 as the broken 'make 
      test' on macosx is really annoying...
      
      Thanks
      
      
    3. login: "das"
    4. mimetype: "text/plain"
    5. username: "das"
  4. Add attachment "tclUnixChan.diff" [a159bc1758] (rid 109697) by das on 2003-02-20 12:27:53.

  5. Ticket change [c8c95b6be9] (rid 122164) by hobbs on 2003-02-21 09:40:01:

    1. closedate changed to: "2003-02-21T02:40:01"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      in for 8.4.2.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"