]> git.sesse.net Git - cubemap/blobdiff - acceptor.cpp
Create $(libdir) on make install.
[cubemap] / acceptor.cpp
index 2fef9148d9a4a93114986a11eadbcf590dbcb463..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, 1);
+       fcntl(server_sock, F_SETFD, FD_CLOEXEC);
 }
 
 AcceptorProto Acceptor::serialize() const