X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=udpinput.cpp;h=a2915e8333dff36c1b3cc1fa2efcb1cfbf1d27cf;hb=HEAD;hp=ecd099a529913250b99531f4427fa6c56ec6d91f;hpb=6d34c5b6d8e5bec5d1421eadc103f38d206f34f1;p=cubemap diff --git a/udpinput.cpp b/udpinput.cpp index ecd099a..824c3bc 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, FD_CLOEXEC); // Should be verified by the caller. string protocol;