]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxnet.c
Better not forget to make sure GTK1 doesn't break.
[PuTTY.git] / unix / uxnet.c
index 2b3d8cbc3d36f9b6e7bcf2542777dccaa605f475..e1dfce327f5f2e8c087895a771b0456b66f85ccb 100644 (file)
@@ -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;