From owner-freebsd-hackers Sat Nov 23 18:58:39 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA24415 for hackers-outgoing; Sat, 23 Nov 1996 18:58:39 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id SAA24410 for ; Sat, 23 Nov 1996 18:58:37 -0800 (PST) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <15209(3)>; Sat, 23 Nov 1996 18:58:02 PST Received: from localhost by crevenia.parc.xerox.com with SMTP id <177557>; Sat, 23 Nov 1996 18:57:55 -0800 To: Bill Paul cc: hackers@freebsd.org Subject: Re: descriptors and sockets and pipes, oh my In-reply-to: Your message of "Sat, 23 Nov 96 10:02:10 PST." <199611231802.NAA05597@skynet.ctr.columbia.edu> Date: Sat, 23 Nov 1996 18:57:45 PST From: Bill Fenner Message-Id: <96Nov23.185755pst.177557@crevenia.parc.xerox.com> Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199611231802.NAA05597@skynet.ctr.columbia.edu> you write: >Does anyone have a source code example handy of passing a file >descriptor from one process to anyther via an AF_UNIX socket? _Advanced Programming in the UNIX Environment_ provides an example for 4.4 ("4.3+"). The source tar is available from http://www.noao.edu/~rstevens. >Also, is it possible to >pass descriptors between totally unrelated processes, or must >they be parent and child? The only requirement for their relationship is that they have an AF_UNIX socket open between them. Bill