X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Funix%2Fsocket.cpp;fp=source%2Fnet%2Funix%2Fsocket.cpp;h=970b9aedd3be443dff55e6500a296719041ea678;hb=b97d82a641331b097d6ae973d0a99a3818e9ccc2;hp=a9e9c58362d0f44faad9ae310157ecfd345e5c83;hpb=a82a89a937d798b5b376d6a58917557a92c56988;p=libs%2Fnet.git diff --git a/source/net/unix/socket.cpp b/source/net/unix/socket.cpp index a9e9c58..970b9ae 100644 --- a/source/net/unix/socket.cpp +++ b/source/net/unix/socket.cpp @@ -44,7 +44,7 @@ void Socket::Private::set_block(bool b) void Socket::Private::set_inherit(bool i) { int flags = fcntl(handle, F_GETFD); - fcntl(handle, F_SETFD, (flags&~O_CLOEXEC)|(i?O_CLOEXEC:0)); + fcntl(handle, F_SETFD, (flags&~O_CLOEXEC)|(i?0:O_CLOEXEC)); } int Socket::Private::set_option(int level, int optname, const void *optval, socklen_t optlen)