From owner-freebsd-current@FreeBSD.ORG Tue Sep 16 19:33:50 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 4EB3C1065671; Tue, 16 Sep 2008 19:33:50 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id B67F28FC14; Tue, 16 Sep 2008 19:33:49 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.3/8.14.3) with ESMTP id m8GJXmKq043949; Tue, 16 Sep 2008 23:33:48 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1221593628; bh=CtqIFOhHs2YX3SGl9pBSgTMyYmmEw3BuKI1oHmO MC7U=; l=537; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=ibMgfjj220lQmBgx3BGAmXCiX tvBxIO/GxJ4aczLCR09fnj1ilRZy+cpVMrtLAffwKhKx+6LJqBmyDzhJ6pqdVoaDfz7 FTGnjo7koKJmCj3DZqut/gMg/1tZbvtLU+JoVRkyB4YXDtkV+SccuJXdVb/DcDaYnTX YXvGSshx0UaE= Received: (from ache@localhost) by nagual.pp.ru (8.14.3/8.14.3/Submit) id m8GJXmpn043948; Tue, 16 Sep 2008 23:33:48 +0400 (MSD) (envelope-from ache) Date: Tue, 16 Sep 2008 23:33:47 +0400 From: Andrey Chernov To: Daniel Eischen Message-ID: <20080916193347.GA43665@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Daniel Eischen , Max Laier , freebsd-current@freebsd.org References: <20080916140319.GA34447@nagual.pp.ru> <200809161827.07627.max@love2party.net> <20080916164558.GA41258@nagual.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: 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: Tue, 16 Sep 2008 19:33:50 -0000 On Tue, Sep 16, 2008 at 01:21:37PM -0400, Daniel Eischen wrote: > Could you add a new interface, arc4random_setstir() or something, > to set a flag that indicates a stir should be done at the next > opportunity? That was my original idea - to set the flag variable (not a new inteface) in the fork() wrapper which arc4random() will check later. I'll think about, what is better: getpid() speedup looks like more general solution for all similar cases while the flag will be for arc4random() only. -- http://ache.pp.ru/