Is fork() hook ever possible?

David Schultz das at
Sat Nov 12 15:56:32 UTC 2011

On Sat, Nov 12, 2011, Andrey Chernov wrote:
> On Tue, Sep 16, 2008 at 04:19:32PM -0400, David Schultz wrote:
> > secteam@ already agreed to the idea of solving the fork problem as
> > in OpenBSD over a month ago. 
> On Wed, Sep 17, 2008 at 12:50:25PM +0400, Andrey Chernov wrote:
> > I agree with your patch (BTW you can remove unneded #define RANDOMDEV).
> The question remains: why you don't commit this patch all that 3 
> years, having secteam@ and mine agreements too?

Sorry, but in the three years that have intervened, my brain has
paged out the relevant context.  As I recall, there were issues
with some of your changes to arc4random() and I proposed tracking
OpenBSD's implementation more closely.  If everyone's in agreement
on that, please go ahead and commit the changes.

On a related note, I recall that the biggest issue is that
getpid() overhead now dominates the cost of arc4random().
The title of this thread suggests a simple solution!

More information about the freebsd-current mailing list