Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c89f0b2eef6b020dc733c158109a70518a71687f
Ticket: 3175754fffffffffffffffffffffffffffffffff
memchan fifo events
User & Date: anonymous on 2011-02-08 16:34:55
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Using the Memchan fifo command, the read events are not being consistent, not triggered at all, triggered only after reading at least one character first. 
    
    Example: 
    % package req Memchan 
    2.3 
    % set c [fifo] 
    fifo0 
    % chan event $c readable r 
    % proc r {} {puts "read -- [read $::c]"} 
    % puts $c "testing read" 
    % flush $c 
    % update 
    % read $c 1 
    t 
    % update 
    read -- esting read 
    ##########################
    
    It can also 
    generate false positives: 
      % package require Memchan 
      2.3 
      % set c [fifo] 
      fifo0 
      % fileevent $c readable {puts stderr READ:; puts stderr "([read $::c 
    1])"} 
      % update 
      READ: 
      () 
      % update 
      READ: 
      () 
    
    #############################
    
    Even stranger, fileevents stop when data are ready ! 
      % fconfigure $c -buffering line 
      % puts $c aa 
      % update 
      % update 
      % update 
      % read $c 1 
      a 
      % update 
      READ: 
      (a) 
      READ: 
      ( 
      ) 
      % update 
      READ: 
      () 
      % update 
      READ: 
      () 
    ########################
    
    I tried it Tcl 8.5 and 8.6. Same issue on both. 
    
  4. foundin changed to: "obsolete: 8.5.9"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. subsystem changed to: "27. Channel Types"
  10. title changed to: "memchan fifo events "
  11. type changed to: "Bug"