From owner-freebsd-hackers Mon Aug 30 7:52:11 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 77187150A5 for ; Mon, 30 Aug 1999 07:51:52 -0700 (PDT) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.8.8/8.8.8) with ESMTP id BAA05542; Mon, 30 Aug 1999 01:06:29 -0700 (PDT) (envelope-from bright@wintelcom.net) Date: Mon, 30 Aug 1999 08:06:29 +0000 (GMT) From: Alfred Perlstein To: Dodge Ram Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Sharing file descriptors In-Reply-To: <19990830142553.77697.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 30 Aug 1999, Dodge Ram wrote: > Hi, > > Have a question on whether it is possible to share > file descriptors between two processes. > > The purpose is to have a stanby process take over when > the primary process fails. The primary process creates/deletes > socket connections at run time. Forking does not scale well when > the rate of connection creates/deletes in high. > > If there is an alternative approach to do this kindly let > me know. > > Any helpful pointers are greatly appreciated. two options I can think of: 1) file descriptor passing (described in Unix Network Programming Vol I) 2) shared address fork (should be on http://lt.tar.com) good luck, -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message