Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ef69ab1474fd08ecf74b59b11b769e5887fcb688
Ticket: 2888099fffffffffffffffffffffffffffffffff
[close] discards buffered data when no space left on device
User & Date: dvrsn on 2009-10-29 01:00:51
Changes

  1. icomment:
    Tcl script to write too big a file raises an uncatchable error.  This may be related.
    
    set fd [open /tmp/somerandomfile w]
    
    for {set c 64} {$c > 0} {incr c -1} {
        while {![catch {seek $fd [expr 1<<$c] current}]} {
            puts [tell $fd]
        }
    }
    
    seek $fd -20 current
    puts stderr "write"
    puts $fd "goodbye, world"
    
    puts stderr "close"
    catch {close $fd}
    
    puts stderr "done"
    
    
  2. login: "dvrsn"
  3. mimetype: "text/plain"
  4. username: "dvrsn"