home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20755 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sdd.hp.com!usc!elroy.jpl.nasa.gov!ames!agate!e260-1c.berkeley.edu!c60b-1fk
  2. From: c60b-1fk@e260-1c.berkeley.edu (Ahmon Dancy)
  3. Newsgroups: comp.os.linux
  4. Subject: select()
  5. Date: 17 Dec 1992 03:59:01 GMT
  6. Organization: University of California, Berkeley
  7. Lines: 21
  8. Distribution: world
  9. Message-ID: <1gotu5INN77h@agate.berkeley.edu>
  10. NNTP-Posting-Host: e260-1c.berkeley.edu
  11. Originator: c60b-1fk@e260-1c.berkeley.edu
  12.  
  13.  
  14. I don't know if this has been addressed before so I'll mention it.
  15. Here's the situation.   I have some code like this:
  16.  
  17. select(sock+1, &r, NULL, NULL, NULL);
  18. r is set for stdin and sock.   
  19.  
  20. The problem is that lets say 'sock' is continually ready to send,
  21. then the program will proceed like normal (printing what was received
  22. at sock).  But if I hit SPACE on the keyboard, all input from sock
  23. stops and select doesn't report any more ready data until I hit
  24. return on the keyboard.  Can anyone explain this?   Is it supposed
  25. to be this way? I don't think so.   It's kind of a nice feature for
  26. muds but it's easy for it get annoying.  Do I need to do some ioctl on
  27. stdin?
  28.  
  29. Any info is appreciated
  30. -- 
  31. -------------------------------------------------------------------------------
  32. Ahmon Dancy  (c60b-1fk@webworm.berkeley.edu)
  33. -------------------------------------------------------------------------------
  34.