Author :
Nick Mathewson
Date :
2012-06-25 12:19:26
Hash :0de587f4 Message :Simplify and correct evutil_open_closeonexec_
The original code needlessly called open in its two- or three-
argument format depending on the O_CREAT flag; this should not be
needed.
The code also leaked an fd if fcntl() failed.
Reported by Dave Hart.