Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2522d397682fc22e829f9ad41dee957aa8937d0f
Ticket: 05382a5317cf938117548b5b76fc9ed5a003b25d
extra pipes opened with exec
User & Date: anonymous on 2015-12-09 13:46:25
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    #!/usr/bin/tclsh
    
    if {$::argv > 0} {
      incr ::argv -1
      exec $::argv0 $::argv &
      exit 0
    }
    
    vwait forever
    
    -- snip --
    
    run the snippet as 'foo.tcl <number>' then check the open fds with 'ls -l /proc/<pid>/fd/'
    
    argv = 1 gives 4 pipes
    argv = 5 gives 12 pipes
    etc
    
    bug is present on tcl 8.5.9
    bug is (apparently) not present on tcl 8.6.1. always 2 pipes, regardless of iterations
    
  5. foundin changed to: "8.5.9"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "44ba02fc039aa6cb02c1613d32e7aa17028afca7"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: "extra pipes opened with exec"
  16. type changed to: "Bug"