Tcl Source Code

View Ticket
Login
Ticket UUID: 2449154
Title: chan event exception anomaly
Type: Bug Created on: 2008-12-19 14:01:57
Submitter: dgp Assigned to: dgp
Subsystem: 02. Event Loops Severity:
Priority: 5 Medium Last modified: 2008-12-19 14:01:57
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.6a4
Description:
Something's off in how the default
background exception handlers react
to TCL_RETURN coming back from chan
event handler.  (Likely same trouble
with any non-error exception).  Note
this contrast:

% chan event [open Makefile] readable return
% vwait forever
can't read "::errorInfo": no such variable
    while executing
"set savedErrorInfo $::errorInfo"
can't wait for variable "forever": would wait forever


% after 0 return
after#0
% vwait forever
command returned bad code: 2
    ("after" script)
can't wait for variable "forever": would wait forever