Date: Tue, 16 Sep 2008 18:03:20 +0400 From: Andrey Chernov <ache@nagual.pp.ru> To: current@freebsd.org Subject: Is fork() hook ever possible? Message-ID: <20080916140319.GA34447@nagual.pp.ru>
next in thread | raw e-mail | index | archive | help
I need some sort of fork() hook to detect that pid is changed to re-stir ar4random() after that (in the child), simple flag variable with child's pid is needed. Currently OpenBSD does almost that checking getpid() every time arc4random() called, but it is very slow way to use getpid() syscall repeatedly, about 12-15 times slower than just arc4random() without getpid(). Any ideas? -- http://ache.pp.ru/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080916140319.GA34447>