X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxnet.c;h=e1dfce327f5f2e8c087895a771b0456b66f85ccb;hb=90e7bf4228fa74fda1c65cb2597c9d964329f702;hp=2b3d8cbc3d36f9b6e7bcf2542777dccaa605f475;hpb=fd6d9bd677cbb2a1a56060d118f4d56b61c82244;p=PuTTY.git 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;