From owner-freebsd-arch Mon Jan 29 14:23:59 2001 Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id AA25837B400; Mon, 29 Jan 2001 14:23:40 -0800 (PST) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id f0TMNhK24997; Mon, 29 Jan 2001 23:23:43 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Alfred Perlstein Cc: John Baldwin , Brian Somers , freebsd-arch@FreeBSD.ORG Subject: Re: Cloned open support In-Reply-To: Your message of "Mon, 29 Jan 2001 14:16:21 PST." <20010129141621.F26076@fw.wintelcom.net> Date: Mon, 29 Jan 2001 23:23:43 +0100 Message-ID: <24995.980807023@critter> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> 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. You are sitting in a car discussing how to invent the wheel :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message