Refcount bug during fileevent callbacks prevents channels fr
Closed / Fixed218480ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:05
OriginalBugID: 678 Bug Version: 8.0.3 SubmitDate: '1998-09-23' LastModified: '1999-12-03' Severity: MED Status: Released Submitter: welch ChangedBy: hobbs OS: All OSVersion: NA Machine: NA FixedDate: '1999-12-03' FixedInVersion: 8.2.3 ClosedDate: '2000-10-25' Tcl_NotifyChannel added calls to Tcl_RegisterChannel and Tcl_UnregisterChannel around the channel callback to deal with some bug related to ChannelEventScriptInvoker. However, this means that a Tcl close command made during a fileevent callback will not really close the channel. It gets closed during the Tcl_UnregisterChannel call, so any return codes (like errors from pipes) are lost. This also breaks Scotty because it creates unregistered channels, so the ref count goes to zero after one fileevent callback and the channel gets closed... It would be nice to understand the original bug that caused this fix.
welch Closed ticket [218480ffff].
[History diff]2000-10-26 08:23:17
dgp Ticket [218480ffff]: 3 changes
[History diff]2001-04-03 06:39:46
Log in (anonymous is fine) to add a comment.