Jilles Tjoelker 571d9493ad 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-11-16 12:31:43 +00:00
2012-06-02 08:47:26 +00:00
2012-04-18 07:02:53 +00:00
2012-10-05 18:42:50 +00:00
2012-10-18 15:39:29 +00:00
2012-02-25 14:31:25 +00:00
2012-06-21 21:47:08 +00:00