Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 56c62073213b8d44d3e223f8c86de581b19996f2
Ticket: e8efa378a96bca5e69e00e5feff1315c932ed47b
Duplicate std* channels in different Threads
User & Date: JKU on 2013-08-29 12:44:17
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    When I create/open a channel in an other Thread (created with <code>thread::create</code>) the names of the first 3 opened channels are <code>stdin</code>, <code>stdout</code> and <code>stderr</code>, as described on the [http://www.tcl.tk/man/tcl8.6/TclLib/StdChannels.htm|Tcl_StandardChannels manual page].
    
    <verbatim>
    % file channels
    stdout stderr stdin
    % package require Thread
    2.6.7
    % set tid [thread::create]
    % thread::send $tid {package require tcl::chan::string}
    1.0.1
    % thread::send $tid {::tcl::chan::string "Hello World\n"}
    stdin
    % thread::send $tid {open test.txt w}
    stdout
    % thread::send $tid {file channels}
    stdin stdout
    </verbatim>
    
    This will probably cause problems when transfering the channels.
    
  5. foundin changed to: "8.6.0"
  6. is_private changed to: "0"
  7. login: "JKU"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Severe"
  11. status changed to: "Open"
  12. submitter changed to: "JKU"
  13. subsystem changed to: "25. Channel System"
  14. title changed to: "Duplicate std* channels in different Threads"
  15. type changed to: "Bug"