home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sun / misc / 6224 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!gatech!rpi!batcomputer!theory.TC.Cornell.EDU!lijewski
  3. From: lijewski@theory.TC.Cornell.EDU (Mike Lijewski)
  4. Subject: strange EINVAL error from write(2) instead of SIGPIPE
  5. Message-ID: <1993Jan11.234759.24945@tc.cornell.edu>
  6. Keywords: client/server EINVAL write SIGPIPE
  7. Sender: news@tc.cornell.edu
  8. Nntp-Posting-Host: theory.tc.cornell.edu
  9. Organization: Goddard Space Flight Center
  10. Date: Mon, 11 Jan 1993 23:47:59 GMT
  11. Lines: 23
  12.  
  13.  
  14. I'm getting a strange error in the server of a server/client pair
  15. running between two Sun IPXs under SunOS 4.1.1.  The short of it is
  16. that write(2) occasionally returns an EINVAL error in the server when
  17. I kill the client, instead of it getting a SIGPIPE.
  18.  
  19. The long version:
  20.  
  21. The server forks with the child doing the processing.  The child sets
  22. up a SIGPIPE catcher with sigaction(2) and then goes about its
  23. business writing a whole bunch of data.  On the other machine when I
  24. kill the client with a ^C (I catch the signal and close the sockets
  25. nicely), I occasionally see write(2) fail with EINVAL instead of it
  26. exiting from the SIGPIPE catcher.
  27.  
  28. Anyone have any clues as to what is going on?  Thanks.
  29.  
  30.  
  31. -- 
  32. Mike Lijewski  (H)301-982-5461
  33. Goddard Space Flight Center
  34. ARPA: lijewski@rosserv.gsfc.nasa.gov
  35. SMAIL: 446 Ridge Rd. Apt. 3, Greenbelt, MD  20770 
  36.