home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4378 < prev    next >
Encoding:
Text File  |  1992-08-18  |  2.2 KB  |  53 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!wupost!usc!sdd.hp.com!caen!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
  3. From: terry@cs.weber.edu (A Wizard of Earth C)
  4. Subject: Re: Problems with select() and serial ports
  5. Message-ID: <1992Aug19.014931.26539@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: Weber State University  (Ogden, UT)
  8. References: <1992Aug18.034054.4016@timesink.spk.wa.us>
  9. Date: Wed, 19 Aug 92 01:49:31 GMT
  10. Lines: 41
  11.  
  12. In article <1992Aug18.034054.4016@timesink.spk.wa.us> kew@timesink.spk.wa.us (Keith Walker) writes:
  13. >
  14. >I recently got 386bsd 0.1 going on my machine and not too long after that
  15. >installed Chris Demetriou's serial driver, which really works good in spite
  16. >of the much maligned copyright :-)
  17. >
  18. >But, the select() call doesn't seem to work right when calling the serial
  19. >ports.  The behaviour is easy to replicate; just press ESC when in vi.  The
  20. >escape will not be recognized until another character is received.  So, it
  21. >seems the timeout isn't working right when there's only one character to be
  22. >read.
  23. >
  24. >Hmmm.
  25. >
  26. >I am not a kernel guru, nor do I play one on the net.  I'm hoping someone
  27. >else out there (maybe cgd?) will have some idea of what the problem is or
  28. >maybe even have a fix.
  29.  
  30. I play one on the net 8-).
  31.  
  32. A patch to the original driver (not Chris', unfortunately) was posted in this
  33. news group some articles back (when I extract something to make a patch
  34. directory, I remove it, so I can't give you a ref #).
  35.  
  36. You can play a kernel guru on the net too!  The fix is to make the device
  37. numbers start with 0 rather than 1 so that select will get the correct index
  38. to do it's thing.  Currently, a select() on an open com1 selects on the 2nd
  39. port (com2) and a select() on an open com2 selects on the third (probably
  40. non-existant) port (com3).
  41.  
  42.                     Terry Lambert
  43.                     terry_lambert@gateway.novell.com
  44.                     terry@icarus.weber.edu
  45. ---
  46. Any opinions in this posting are my own and not those of my present
  47. or previous employers.
  48. -- 
  49. -------------------------------------------------------------------------------
  50.                                                        terry@icarus.weber.edu
  51.  "I have an 8 user poetic license" - me
  52. -------------------------------------------------------------------------------
  53.