Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: f80db57b1aa46e162d4929f9fc018e74d28d9c9c
Ticket: ef34dd2457472b08cf6a42a7c8c26329e2cae715
fileevent writable starves bgerror
User & Date: anonymous 2014-07-06 20:42:21
Changes

  1. closedate changed to: "2456845.36275289"
  2. closer changed to: "anonymous"
  3. icomment:
    Not a bug, works just like it should.
    
    from the manpage of bgerror(n):
    "When Tcl detects a background error, it  saves  information  about  the error  and invokes a handler command registered by interp bgerror later as an 
    idle event handler."
    ^^^^^^^^^^^^^^^^^^^
    
    ...and Tcl_DoOneEvent(3) states that idle callbacks are processed only once there are no other events to process.
    
    In the example, the event loop never gets a chance to do idle callbacks (and bgerror _is_ an idle callback) because there's always a [fileevent readable] event.
    
  4. login: "anonymous"
  5. mimetype: "text/plain"
  6. resolution changed to: "Rejected"
  7. status changed to: "Closed"