Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c67c7c2ccb0716d0db95b5ab078c2e272a2eaf87
Ticket: 1939509fffffffffffffffffffffffffffffffff
Tcl hangs in "exec" (on multi-processor machines)
User & Date: nobody on 2008-05-21 18:26:49
Changes

  1. icomment:
    Logged In: NO 
    
    I have a similar problem, just under window XP (32 bit, dual core). Unix is fine.
    There are three scripts involved: A.tcl B.tcl D.tcl.
    D.tcl is a daemon and runs forever.
    A.tcl start B.tcl and waits on its return. B.tcl executes D.tcl in background
    (exec tclsh d.tcl). Then B.tcl calls exit, but A.tcl hangs in its exec call. 
    If D.tcl is not excuted, A.tcl doesn't hang. It is always reproducable. A.tcl seems 
    to hang on these lines from tclWinPipe.c:2899
    
    if (ReadFile(handle, NULL, 0, &count, NULL) == FALSE ||
    PeekNamedPipe(handle, NULL, 0, NULL, &count, NULL) == FALSE) {
    
    (There are three threads: PipeReaderThread, CallibrationThread, and TclTkProvide_Ex).
    
    
    
  2. login: "nobody"
  3. mimetype: "text/plain"
  4. username: "nobody"