Path: utzoo!attcan!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: How to transfer file descriptors with UNIX domain sockets? Message-ID: <3597@auspex.auspex.com> Date: 2 Jul 90 18:00:54 GMT References: <1990Jul01.130157.3627@virtech.uucp> <10981@hydra.gatech.EDU> Organization: Auspex Systems, Santa Clara Lines: 11 >I'm sure that it *can* be done - my question is what was it in Oliver >Laumann's code that informed the kernel that what was in the message was a >file descriptor? It was msg.msg_accrights = (caddr_t)&fd; msg.msg_accrightslen = sizeof (fd); I.e., the "access rights" in a message sent down a UNIX-domain socket are, by definition, file descriptors....