X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=udpinput.cpp;fp=udpinput.cpp;h=873b0b952911a226d8f08255f80e2d092e163801;hp=ecd099a529913250b99531f4427fa6c56ec6d91f;hb=7c23f706733b12405c0cb8793866b57ba5800c98;hpb=e713e8e65d60ea97c788418692b22ac328a610b0 diff --git a/udpinput.cpp b/udpinput.cpp index ecd099a..873b0b9 100644 --- a/udpinput.cpp +++ b/udpinput.cpp @@ -123,7 +123,7 @@ UDPInput::UDPInput(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.) - fcntl(sock, F_SETFD, 1); + fcntl(sock, F_SETFD, O_CLOEXEC); // Should be verified by the caller. string protocol;