Overview
| Artifact ID: | 2932584dfb8d266a3ed84a1ba25dc49eb17d5316153d6fb3635877cb6d6f311a |
|---|---|
| Ticket: | 5338d8e82fb3e23658b61bb60ea82cdd2d581c61
Closing the std* channels and opening replacements sometimes doesn't register the std* channel name in interps |
| User & Date: | cyan on 2023-05-04 13:02:25 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-plain"
- 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"; flush stdout} - foundin changed to: "8.7a6"
- is_private changed to: "0"
- login: "cyan"
- priority changed to: "5 Medium"
- private_contact changed to: "54152f94cb1628c0c148b4b5708ace53216227b0"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "cyan"
- subsystem changed to: "25. Channel System"
- title changed to:
Closing the std* channels and opening replacements sometimes doesn't register the std* channel name in interps
- type changed to: "Bug"