home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / tcl / 1928 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.1 KB  |  30 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!tessi!morton!morton!joe
  3. From: joe@morton.rain.com (Joe Moss)
  4. Subject: Re: polling, nonblocking reads in tcl
  5. Message-ID: <joe.722544680@morton>
  6. Organization: Morton & Associates, Inc.
  7. References: <mathew.722381246@henry>
  8. Date: Mon, 23 Nov 1992 18:51:20 GMT
  9. Lines: 19
  10.  
  11. mathew@elroy.Jpl.Nasa.Gov (Mathew Yeates) writes:
  12.  
  13. [...]
  14.  
  15. >2) It seems that the input is being buffered. Is this a consequence of
  16. >the Tcl command "read" being built on top of fread instead of read?
  17. >Often times, the program will hang at the select call as if there is
  18. >no impending input (even though I know it is there). If I force some
  19. >characters through the telnet connection, then the missing characters
  20. >show but the ones I just sent do not. In other words, there is a delay.
  21.  
  22. Try adding this after the open call:
  23.  
  24.     fcntl $valkcon NOBUF 1
  25. -- 
  26. Joe V. Moss                             |   joe@morton.rain.com
  27. Morton & Associates                     |  joem@m2xenix.psg.com
  28. 7478 S.W. Coho Ct.            |         - or -
  29. Tualatin, OR 97062-9277                 |  uunet!m2xenix!morton!joe
  30.