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