From owner-freebsd-questions Tue Jan 4 18:26:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from test.tar.com (test.tar.com [204.95.187.4]) by hub.freebsd.org (Postfix) with ESMTP id 63BA31503C for ; Tue, 4 Jan 2000 18:26:51 -0800 (PST) (envelope-from dick@test.tar.com) Received: (from dick@localhost) by test.tar.com (8.9.3/8.9.3) id UAA00985; Tue, 4 Jan 2000 20:26:47 -0600 (CST) (envelope-from dick) Date: Tue, 4 Jan 2000 20:26:47 -0600 From: "Richard Seaman, Jr." To: Scott Hess Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to use rfork(RFMEM) correctly. Message-ID: <20000104202647.A422@tar.com> References: <002501bf5722$afa4c920$1e80000a@avantgo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <002501bf5722$afa4c920$1e80000a@avantgo.com>; from scott@avantgo.com on Tue, Jan 04, 2000 at 06:15:07PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jan 04, 2000 at 06:15:07PM -0800, Scott Hess wrote: > Concise: Does anyone have a simple, self-contained example of using > rfork(RFMEM) to fork off a process that can share the parent process' > memory and file descriptors? "Simple" == doesn't take days to understand, Take a look at ports/devel/linuxthreads/files Check clone.S, and lclone.c. lclone.c shows how to call _clone() with BSD style flags. -- Richard Seaman, Jr. email: dick@tar.com 5182 N. Maple Lane phone: 262-367-5450 Chenequa WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message