Overview
| Artifact ID: | c59f962d6fa2273fce7a0071ffb7a112f185bfd1 |
|---|---|
| Ticket: | 3590287fffffffffffffffffffffffffffffffff
Proc hangs when channel not closed |
| User & Date: | blacksqr on 2012-11-27 06:29:41 |
Changes
- assignee changed to: "nijtmans"
- cmimetype changed to: "text/plain"
- comment changed to:
A proc that attempts to read output from an external process hangs if the process output channel isn't closed before attempting to return. This proc runs fine with e.g. "run_cmd ls": proc run_cmd {cmd} { set channel [open "| $cmd"] chan event $channel readable "set ::ready_$channel {}" vwait ::ready_$channel set result [read $channel] close $channel return $result } Now edit the above proc by commenting out the close command. When executed it never returns. Tested on 8.5.11 and 8.6.0.0b8 on Ubuntu 10.04. ActiveState distribution. - foundin changed to: "obsolete: 8.5.13"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "blacksqr"
- subsystem changed to: "02. Event Loops"
- title changed to: "Proc hangs when channel not closed"
- type changed to: "Bug"