From owner-freebsd-hackers Fri Aug 28 12:04:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA02981 for freebsd-hackers-outgoing; Fri, 28 Aug 1998 12:04:16 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA02970 for ; Fri, 28 Aug 1998 12:04:10 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id MAA00381; Fri, 28 Aug 1998 12:00:49 GMT (envelope-from mike@dingo.cdrom.com) Message-Id: <199808281200.MAA00381@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Luigi Rizzo cc: chanders@timing.com (Craig Anderson), freebsd-hackers@FreeBSD.ORG, brhall@timing.com Subject: Re: Help with passing fd on FreeBSD In-reply-to: Your message of "Fri, 28 Aug 1998 18:28:36 +0200." <199808281628.SAA05374@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 28 Aug 1998 12:00:49 +0000 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Oops, I turned the page and the BSD4.3+ example looks like the FreeBSD > > struct. The Stevens book appears to have a good example. > > > > > Can someone give me pointers on passing open file descriptors on FreeBSD? > > still, this looks to me one of the most obscure interfaces in the OS. > Does any real application use that ? I've used it before for passing client connections off from a server to a preforked long-lived "work slave". It's quite handy for that sort of thing - especially with network connections where you can't just pass a reference in filename space. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message