]> git.sesse.net Git - cubemap/blobdiff - httpinput.cpp
Fix yet more stupid close-on-exec bugs.
[cubemap] / httpinput.cpp
index 75cf99b9c8de73983e039bd2061dd7ef2da20c96..b2b620706ad368983e37aafd8ae1e1f101e784f6 100644 (file)
@@ -81,7 +81,7 @@ HTTPInput::HTTPInput(const InputProto &serialized)
        // Set back the close-on-exec flag for the socket.
        // (This can't leak into a child, since we haven't been started yet.)
        if (sock != -1) {
-               fcntl(sock, F_SETFD, O_CLOEXEC);
+               fcntl(sock, F_SETFD, FD_CLOEXEC);
        }
 
        pending_data.resize(serialized.pending_data().size());