Skip to content
Tcl Source Code History Of Ticket 230478
Login

History Of Ticket 230478

Artifacts Associated With Ticket 230478

  1. Ticket change [55148066ae] (rid 94067) by dgp on 2001-01-30 17:55:05:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The [fcopy] docs say:
      
      Without the -command option, fcopy blocks until
      the copy is complete and returns the number of
      bytes written to outchan.
      
      In revision 1.28 of generic/tclIO.c in CopyData(), how
      does the code avoid the "return TCL_OK" on line 7066
      and line 7109 when no -command option has been specified
      (i.e. cmdPtr == NULL) ?
      
      If these returns are not avoided, then [fcopy] will not
      block until the copy completes, and will return an empty
      string instead of the number of bytes copied, right?
      
      Is there something subtle and tricky I'm missing that
      guarantees this problem will not arise?
      
    4. foundin initialized to: "obsolete: 8.4a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "25. Channel System"
    10. title initialized to: "another [fcopy] bug?"
    11. type initialized to: "Bug"
  2. Ticket change [d2bc4fcd6b] (rid 113585) by dgp on 2001-04-04 22:35:42:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Andreas, since you are already looking at [fcopy]/
      CopyData(), could you take a look at this?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  3. Ticket change [4b6006c1d8] (rid 126700) by andreas_kupries on 2001-04-05 00:26:07:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Yes, there is some trickery.
      
      If you look at 'TclCopyChannel', the procedure which calls
      'CopyData' you will find that it configures the channels
      into blocking mode if there is no command (ptr).
      
      This means that the read calls will only return in case of
      an error (size < 0) or if the buffer is full or EOF was
      reached. Only in the case of EOF size == 0 is possible and
      EOF is handled specially at that point (breaking out of the
      loop). It also means that there is never a background flush
      running, so it avoids the second return too.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  4. Ticket change [c05498b799] (rid 102384) by dgp on 2001-04-05 01:55:22:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      I think I get it now.  Feel free to close/invalidate this
      report.  Or add some source code comments if you think
      others will become similarly concerned.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [b650b3bee2] (rid 125398) by andreas_kupries on 2001-04-05 03:37:59:

    1. closedate changed to: "2001-04-04T20:37:59"
    2. closer changed to: "andreas_kupries"
    3. resolution changed to: "Invalid"
    4. status changed to: "Closed"