X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/e9122dbeb747afb12d2c3c305228958c2e23e6cf..db9b7dcedb001b942ad945a56b2d7bf9b77d7a6a:/unix/uxnet.c 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;