summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/system.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2012-12-17 10:38:51 +0000
committerjilles <jilles@FreeBSD.org>2012-12-17 10:38:51 +0000
commit3268de3a0df48cce2d34cda24995077176c1e0be (patch)
treeb1c948dd83e286f99bbcbd51cb1a0fa52990bd00 /lib/libc/stdlib/system.c
parent00bb67e800bff8cd8ca4a28132de0063fc074f9c (diff)
downloadFreeBSD-src-3268de3a0df48cce2d34cda24995077176c1e0be.zip
FreeBSD-src-3268de3a0df48cce2d34cda24995077176c1e0be.tar.gz
libc/iconv: Fix race condition with setting FD_CLOEXEC.
A fork/exec could happen between open and fcntl, leaking a file descriptor. Using O_CLOEXEC fixes this and as a side effect simplifies the code. NetBSD already had this (I checked this after making the change myself). Reviewed by: gabor
Diffstat (limited to 'lib/libc/stdlib/system.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud