Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 80bced38ceeb68c2fa14143d0e63dbe48662320d
Ticket: 982547ffffffffffffffffffffffffffffffffff
exec doesn't return sometimes
User & Date: p_samson on 2004-06-30 07:38:44
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OS: Windows/Cygwin
    
    I have a script  running regularly (every 5 mn),
    with this command:
    
    if {[catch {eval exec "bash --login file.tcl $dbname
    $table $dirlog"} errmsg]} {
     puts ...
    } else {
     puts ...
    }
    
    It can run perfectly for days, but sometimes,
    as this morning (05:20 AM, so no activity),
    the command freezes and doesn't return.
    No puts is executed.
    The bash process has done its work,
    I can see that its last instruction (a puts) is
    executed, and there is no more sh or pgtclsh
    process anymore.
    
    It seems as if exec didn't detect the end of
    execution of this argument and still waits.
    
    It may be a race condition, so I can not
    reproduce it at will, nor provide a test case,
    sorry.
    Anyway, I submit the bug report for the record,
    and in the hope it may ring a bell for the exec
    command maintainer.
    Some "me too" are welcome as well.
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "p_samson"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "exec doesn't return sometimes"
  11. type changed to: "Bug"