From owner-freebsd-questions Sat Aug 21 13:43:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from monkeys.com (i180.value.net [206.14.136.180]) by hub.freebsd.org (Postfix) with ESMTP id BBD1915C0F for ; Sat, 21 Aug 1999 13:43:24 -0700 (PDT) (envelope-from rfg@monkeys.com) Received: from monkeys.com (LOCALHOST [127.0.0.1]) by monkeys.com (8.9.3/8.9.3) with ESMTP id NAA29453; Sat, 21 Aug 1999 13:01:31 -0700 To: Brian Somers Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Passing file descriptors via UNIX domain sockets In-reply-to: Your message of Sat, 21 Aug 1999 21:22:11 +0100. <199908212022.VAA04816@keep.lan.Awfulhak.org> From: "Ronald F. Guilmette" Date: Sat, 21 Aug 1999 13:01:31 -0700 Message-ID: <29451.935265691@monkeys.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199908212022.VAA04816@keep.lan.Awfulhak.org>, you wrote: >Take a look at the ppp(8) code - specifically at >bundle_ReceiveDatalink() and bundle_SendDatalink() in bundle.c. Yep! That's the ticket alrightee! That's exactly what I was looking for. That code is most helpful as an example, and I am now gleefully (and successfully) passing file descriptors! (I found the exact code you mentioned late last night, after I posted my question to freebsd-questions. DUH! I guess I should have gone grepping sources before I bothered everybody here. Sorry.) -- rfg P.S. The capability to pass open file descriptors between processes... even between otherwise unrelated processes... is way cool! I can do some neat things with this! Too bad the little pair of programs I wrote (just to see if I could actually make this fd passing stuff work) doesn't actually work under the Linux 2.2.7 kernel I have installed :-( even though it works just fine on FreeBSD. :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message