Is fork() hook ever possible?

Andrey Chernov ache at nagual.pp.ru
Tue Sep 16 19:33:50 UTC 2008


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/


More information about the freebsd-current mailing list