X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/89e97516fedf1d0a7fe9c569bb569fa7ea872afa..e223b7c7fb42431f9d4f7111c5df209d6b8b1d25:/unix/uxnet.c?ds=sidebyside diff --git a/unix/uxnet.c b/unix/uxnet.c index 2b3d8cbc..e1dfce32 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -470,7 +470,7 @@ static int try_connect(Actual_Socket sock) goto ret; } - fcntl(s, F_SETFD, FD_CLOEXEC); + cloexec(s); if (sock->oobinline) { int b = TRUE; @@ -725,7 +725,7 @@ Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, i return (Socket) ret; } - fcntl(s, F_SETFD, FD_CLOEXEC); + cloexec(s); ret->oobinline = 0;