git: libc - Use O_CLOEXEC in srandomdev()
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Nov 22 10:01:30 PST 2017
commit da37dfa811f28e3f809bbe6ef3eaa6ebbca1ff77
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Nov 22 10:00:33 2017 -0800
libc - Use O_CLOEXEC in srandomdev()
* Specify O_CLOEXEC in srandomdev() to avoid descriptor leakages
if called during a concurrent threaded fork().
Summary of changes:
lib/libc/stdlib/random.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/da37dfa811f28e3f809bbe6ef3eaa6ebbca1ff77
--
DragonFly BSD source repository
More information about the Commits
mailing list