home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4392 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.1 KB

  1. Xref: sparky comp.unix.programmer:4392 comp.unix.internals:1722
  2. Newsgroups: comp.unix.programmer,comp.unix.internals
  3. Path: sparky!uunet!cs.utexas.edu!asuvax!ennews!enuxhb.eas.asu.edu!trotter
  4. From: trotter@enuxhb.eas.asu.edu (Russell Trotter)
  5. Subject: Sendmsg() on SunOS access rights
  6. Message-ID: <1992Aug21.043106.11945@ennews.eas.asu.edu>
  7. Sender: news@ennews.eas.asu.edu (USENET News System)
  8. Organization: Arizona State University, Tempe
  9. Date: Fri, 21 Aug 1992 04:31:06 GMT
  10. Lines: 15
  11.  
  12. Hello,
  13.  
  14.    Have any of you guys experience a wierd side effect of sendmsg()
  15. on SunOS 4.1.2 sending access rights (socket desciptors).  I have
  16. a program that starts a non-blocking connect on a socket, then at
  17. a later time pass this connected socket to another process (with the
  18. sendmsg() call).  When I step through the sendmsg() call with dbx
  19. the struct msghdr struct gets blown away (all fields get set to zero..
  20. including the accrights fields) and doesn't return an error ??? Does the
  21. state of the socket have anything to do with this side effect? Thanks
  22. to anyone who can help.
  23.  
  24. asu@panther.mot.com
  25. trotter@enuxha.eas.asu.edu
  26.  
  27.