From owner-freebsd-current@FreeBSD.ORG Wed Sep 17 09:34:14 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77F9B106580F; Wed, 17 Sep 2008 09:34:14 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 3BD498FC2E; Wed, 17 Sep 2008 09:34:14 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id D5613170E4; Wed, 17 Sep 2008 09:34:12 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m8H9YC5G089832; Wed, 17 Sep 2008 09:34:12 GMT (envelope-from phk@critter.freebsd.dk) To: Andrey Chernov From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 17 Sep 2008 13:32:40 +0400." <20080917093238.GA59500@nagual.pp.ru> Date: Wed, 17 Sep 2008 09:34:12 +0000 Message-ID: <89831.1221644052@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Daniel Eischen , Max Laier , freebsd-current@freebsd.org Subject: Re: Is fork() hook ever possible? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 09:34:14 -0000 In message <20080917093238.GA59500@nagual.pp.ru>, Andrey Chernov writes: >On Wed, Sep 17, 2008 at 09:24:01AM +0000, Poul-Henning Kamp wrote: >> Just have the FreeBSD library calls, call the wrapper function that >> does a pid check and be done with it. > >I understand your idea and it was first idea that comes to me too, but >since API is not ours, it does not work that way. Well, in that case, you should leave the "slow" check in place and live with it. -- 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.