Commit 0de587f47ede7e433d426e90b645f89669b8094b

Nick Mathewson 2012-06-25T12:19:26

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.