Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 94619b51a8c85390a6937cd1ea90f93c7ab41d23
Ticket: ef34dd2457472b08cf6a42a7c8c26329e2cae715
fileevent writable starves bgerror
User & Date: pooryorick 2013-11-14 15:41:51
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    In the code below, both the readeble and writable event scripts are executed, but bgerror never runs because the queue is dominated by the fileevent events.
    
    ----
    
    #! /bin/env tclsh
    
    proc handler {arg} {
        return -code error "an error!"
    }
    
    lassign [chan pipe] pipeout pipein
    set stdout [open |[list echo hello]]
    fileevent $pipein writable {apply {{} {}}}
    fileevent $stdout readable [list handler $stdout]
    
    vwait exit
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "de8592b799aee41baa90d5ffa003528d4b606ea0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "04. Async Events"
  15. title changed to: "fileevent writable starves bgerror"
  16. type changed to: "Bug"