X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=acceptor.cpp;h=31901dd8406c97c39d97dc9b3310dedb4f37a18e;hp=2fef9148d9a4a93114986a11eadbcf590dbcb463;hb=0229f4414b3b63934c057030deb88cbf6926bb1f;hpb=4c0ab81c4f1b5d0e76c5775a01819d3334cc9399 diff --git a/acceptor.cpp b/acceptor.cpp index 2fef914..31901dd 100644 --- a/acceptor.cpp +++ b/acceptor.cpp @@ -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, O_CLOEXEC); } AcceptorProto Acceptor::serialize() const