]> git.sesse.net Git - cubemap/blobdiff - acceptor.cpp
Fix yet more stupid close-on-exec bugs.
[cubemap] / acceptor.cpp
index 31901dd8406c97c39d97dc9b3310dedb4f37a18e..75dd70b5540ff291b1cb2f7f54000a1340ae9ef4 100644 (file)
@@ -104,7 +104,7 @@ Acceptor::Acceptor(const AcceptorProto &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.)
-       fcntl(server_sock, F_SETFD, O_CLOEXEC);
+       fcntl(server_sock, F_SETFD, FD_CLOEXEC);
 }
 
 AcceptorProto Acceptor::serialize() const