K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-12-17T10:38:51.205019Z K 7 svn:log V 296 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 END