Skip to content
Tcl Source Code History Of Ticket 519868ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 519868ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 519868ffffffffffffffffffffffffffffffffff

  1. Ticket change [29da20aee4] (rid 118459) by krischan on 2002-02-19 11:10:51:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      starting with Tcl8.1 the fblocked command applied to
      a command pipe always returns false, even if the
      recent [read] returned less bytes than wanted.
      
      Example script:
        puts Tcl:$tcl_patchLevel
      
        set in [open "|/bin/sh -c {sleep 2; echo Hallo
      Welt}"]
        fconfigure $in -blocking 0 -translation binary
      
        while {42} {
          set bytes [read $in 11]
          if {[eof $in]} {
            close $in
            break
          }
          puts [format "read of %d bytes was %sblocked" \
                 [string length $bytes] \
                 [expr {[fblocked $in] ? "" : "non "}]]
          after 1100
        }
      
      Output for various Tcl versions:
        > tcl8.0.5/unix/tclsh fblocked.tcl
        Tcl:8.0.5
        read of 0 bytes was blocked
        read of 0 bytes was blocked
        read of 11 bytes was non blocked
        > tcl8.1.1/unix/tclsh fblocked.tcl
        Tcl:8.1.1
        read of 0 bytes was non blocked
        read of 0 bytes was non blocked
        read of 11 bytes was non blocked
        > tcl8.4a3/unix/tclsh fblocked.tcl
        Tcl:8.4a3
        read of 0 bytes was non blocked
        read of 0 bytes was non blocked
        read of 11 bytes was non blocked
      
      
    4. foundin initialized to: "obsolete: 8.4a3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "krischan"
    9. subsystem initialized to: "25. Channel System"
    10. title initialized to: "[fblocked] on cmd pipe always returns 0"
    11. type initialized to: "Bug"
  2. Ticket change [619b142f34] (rid 92270) by matzek on 2004-05-03 19:02:28:

    1. icomment:
      Logged In: YES 
      user_id=330806
      
      > /usr/local/ActiveTcl/bin/tclsh8.4 ~/fblocked.tcl 
      Tcl:8.4.6
      read of 0 bytes was non blocked
      read of 0 bytes was non blocked
      read of 11 bytes was non blocked
      
      Will this ever get fixed?
      
      
    2. login: "matzek"
    3. mimetype: "text/plain"
    4. username: "matzek"
  3. Ticket change [556689879c] (rid 259725) by serhiy.storchaka on 2026-10-21 10:03:37:

    1. icomment:
      Fixed in 8.5.16 and 8.6.2 by the CHANNEL_BLOCKED/EOF rework [2a40293a49] (8.5: [f6b7d496c4]): after a short non-blocking read from a command pipe, <tt>fblocked</tt> now returns 1.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  4. Ticket change [133321b3e8] (rid 260017) by serhiy.storchaka on 2026-10-22 17:19:30:

    1. closedate changed to: "2461334.919188669"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"