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
|