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-09-06 20:59:49 +00:00
2012-08-15 03:09:00 +00:00
2012-12-12 15:27:33 +00:00
2012-05-12 07:52:45 +00:00
2012-09-05 21:41:05 +00:00
2012-03-06 03:30:09 +00:00
2012-05-13 14:16:04 +00:00
2011-07-10 06:57:00 +00:00