Skip to content
Tcl Source Code History Of Ticket 5338d8e82
Login

History Of Ticket 5338d8e82

Artifacts Associated With Ticket 5338d8e82

  1. Ticket change [2932584dfb] (rid 214548) by cyan on 2023-05-04 13:02:25:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      In the following code, if stdout was written to by the parent interp before closing
      then it will fail on the line that configures the (new) stdout channel with the error:
      
      can not find channel named "stdout"
      
      If the first line that outputs to stdout in the parent interp is commented out, the code
      works as expected:
      
      interp create foo
      puts "before, parent"   ;# Works if this line is commented out
      interp eval foo {puts stderr "before, child"}
      interp eval foo {close stdout}
      interp eval foo [list open [exec tty] w]
      interp eval foo {chan configure stdout -buffering line -blocking 0}
      puts "New stdout, from parent"
      interp eval foo {puts "New stdout, from child"; flush stdout}
      
    5. foundin initialized to: "8.7a6"
    6. is_private initialized to: "0"
    7. login: "cyan"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "54152f94cb1628c0c148b4b5708ace53216227b0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "cyan"
    14. subsystem initialized to: "25. Channel System"
    15. title initialized to:
      Closing the std* channels and opening replacements sometimes doesn't register the std* channel name in interps
      
    16. type initialized to: "Bug"
  2. Ticket change [e4c3ae689d] (rid 214549) by cyan on 2023-05-04 13:04:21:

    1. comment changed to:
      In the following code, if stdout was written to by the parent interp before closing
      then it will fail on the line that configures the (new) stdout channel with the error:
      
      can not find channel named "stdout"
      
      If the first line that outputs to stdout in the parent interp is commented out, the code
      works as expected:
      
      interp create foo
      puts "before, parent"   ;# Works if this line is commented out
      interp eval foo {puts stderr "before, child"}
      interp eval foo {close stdout}
      interp eval foo [list open [exec tty] w]
      interp eval foo {chan configure stdout -buffering line -blocking 0}
      puts "New stdout, from parent"
      interp eval foo {puts "New stdout, from child"}
      
    2. login: "cyan"
    3. mimetype: "text/plain"