X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=acceptor.cpp;h=31901dd8406c97c39d97dc9b3310dedb4f37a18e;hp=2fef9148d9a4a93114986a11eadbcf590dbcb463;hb=7c23f706733b12405c0cb8793866b57ba5800c98;hpb=e713e8e65d60ea97c788418692b22ac328a610b0 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