Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 750d275caf2cf76fdce2a58bded9bd3de5e46135
Ticket: 2946474fffffffffffffffffffffffffffffffff
[exit] doesn't wait for background flushes of close channels
User & Date: ferrieux on 2010-02-05 11:06:45
Changes

  1. assignee changed to: "ferrieux"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    While [exit] normally waits for output flushing on all channels, including non-blocking ones, [close] also schedules a background flush, but a subsequent [exit] aborts that flush:
    
       (in another terminal: mkfifo /tmp/fifo;sleep 9999 < /tmp/fifo)
    
       set ff [open /tmp/fifo w]
       fconfigure $ff -blocking 0
       puts -nonewline $ff [string repeat A 999999]
       flush $ff
       close $ff
       exit
    
    => exits immediately
    
    Comment out the 'close' above, and the [exit] blocks again....
    This bug is present in 8.[456] HEAD, but not in 8.3.5.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "7 High"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ferrieux"
  10. subsystem changed to: "25. Channel System"
  11. title changed to:
    [exit] doesn't wait for background flushes of close channels
    
  12. type changed to: "Bug"