home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3800 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  1.8 KB

  1. Path: sparky!uunet!destroyer!gatech!usenet.ins.cwru.edu!cleveland.Freenet.Edu!am815
  2. From: am815@cleveland.Freenet.Edu (Joel Peter Anderson)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: STREAMS M_ERROR Message problem
  5. Date: 4 Sep 1992 17:38:28 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 29
  8. Message-ID: <1886ulINNsqj@usenet.INS.CWRU.Edu>
  9. References: <gram.715600291@aim1> <Btou5D.6DH@flatlin.ka.sub.org> <1992Aug26.130739.19300@usenet.ins.cwru.edu> <1992Aug31.144154.21347@usenet.ins.cwru.edu>
  10. Reply-To: am815@cleveland.Freenet.Edu (Joel Peter Anderson)
  11. NNTP-Posting-Host: slc5.ins.cwru.edu
  12.  
  13.  
  14. In a previous article, gram@aim1.aztec.co.za (Graham Wheeler) says:
  15.  
  16. >am815@cleveland.Freenet.Edu (Joel Peter Anderson) writes:
  17. >
  18. >>succeed.  If a byte is set to 0, the error state is cleared for the
  19. >>corresponding side of theStream.  The values NOERROR and 0 are not
  20. >>valid for the one-byte form of the M_ERROR message."
  21. >
  22. >Have you tried using 0 instead on NOERROR? Maybe an error condition has
  23. >occurred anyway, and using NOERROR does not change anything.
  24. >
  25.  
  26. Good idea, but, sorry, no dice.  After we experienced this problem I wrote
  27. a dumb little device driver that allows you to send any two bytes up the
  28. stream as an M_ERROR message.  I have tried all permutations and 1)can get
  29. errors registered on either or both sides 2) get errors on the read side
  30. only.  As soon as I send any M_ERROR skyward all reads fail.  If NOERROR or
  31. zero is sent, errno reads as EAGAIN.(?) Otherwise, if I send an error
  32. value, that value is put in errno. 
  33.  
  34. Any other thoughts?
  35.  
  36.  
  37. -- 
  38. -------------------------------------------------------------------------
  39.   joela@apertus.mn.org           |Freenet: am815@cleveland.freenet.edu
  40.     Joel Peter Anderson          |PNET: jpa@pnet51.orbit.mn.org
  41.     Apertus Technologies         |GEnie:J.ANDERSON71
  42.