X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/89e97516fedf1d0a7fe9c569bb569fa7ea872afa..9621bbab1023b211d1ab0ee2f1039b0462b55812:/unix/uxagentc.c diff --git a/unix/uxagentc.c b/unix/uxagentc.c index 7b737d1d..3605c601 100644 --- a/unix/uxagentc.c +++ b/unix/uxagentc.c @@ -122,7 +122,7 @@ int agent_query(void *in, int inlen, void **out, int *outlen, exit(1); } - fcntl(sock, F_SETFD, FD_CLOEXEC); + cloexec(sock); addr.sun_family = AF_UNIX; strncpy(addr.sun_path, name, sizeof(addr.sun_path));