jilles 3268de3a0d 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
2012-12-17 10:38:51 +00:00
..
2012-03-26 14:56:23 +00:00
2012-03-27 20:50:14 +00:00
2012-03-28 19:20:28 +00:00