From owner-freebsd-arch Mon Jan 29 14:31:23 2001 Delivered-To: freebsd-arch@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id AD77237B402; Mon, 29 Jan 2001 14:31:06 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f0TMSY102216; Mon, 29 Jan 2001 14:28:34 -0800 (PST) Date: Mon, 29 Jan 2001 14:28:34 -0800 From: Alfred Perlstein To: Poul-Henning Kamp Cc: John Baldwin , Brian Somers , freebsd-arch@FreeBSD.ORG Subject: Re: Cloned open support Message-ID: <20010129142834.G26076@fw.wintelcom.net> References: <20010129141621.F26076@fw.wintelcom.net> <24995.980807023@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <24995.980807023@critter>; from phk@critter.freebsd.dk on Mon, Jan 29, 2001 at 11:23:43PM +0100 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Poul-Henning Kamp [010129 14:23] wrote: > > >> Why not use an ioctl on the control device to get a minor number to > >> use? The ioctl could then do a make_dev() on the appropriate device > >> to create it. > > > >Yes, but will it swap the current open fd with the new device? > > > >Afaik the idea is to remove the race condition. > > Guys, we *already have* cloning support that either does or can > do all of this with only minor adjustments. /me hands you a wrench > > You are sitting in a car discussing how to invent the wheel :-) then we are waiting to be enlightened. :) thanks, -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message