Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 68b8396cf50a0f34846cdb506370a73131162c67
Ticket: 027ba061a8aac869441267c2aef4c4bf9c705c10
Standard channels do not exist on new threads on Windows
User & Date: anonymous on 2014-09-25 14:38:43
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    On Windows, the channels 'stdin', 'stdout' and 'stderr' do not exist on new
    threads. On Linux they do. This inconsistency causes unexpected errors, for example when trying to write to those channels.
    
    On Linux:
    ~~~
    ::thread::send $tid { ::chan names; };
    % package require Thread;
    2.7.0
    % ::chan names;
    stdin stdout stderr
    % set tid [::thread::create { ::thread::wait; }];
    tid0x7f555da5e700
    % ::thread::send $tid { ::chan names; };
    stdin stdout stderr
    % 
    ~~~
    
    On Windows:
    ~~~
    % package require Thread;
    2.7.0
    % ::chan names;
    stdout stderr stdin
    % set tid [::thread::create { ::thread::wait; }];
    tid0000014C
    % ::thread::send $tid { ::chan names; };
    % 
    ~~~
    
  5. foundin changed to: "2.7.0"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "219192cc5b7de6cef9c96726d1feb29d0382f2dc"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "80. Thread Package"
  15. title changed to:
    Standard channels do not exist on new threads on Windows
    
  16. type changed to: "Bug"