mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Set FD_CLOEXEC in a little convenience function that does the right thing
with F_GETFD and F_SETFD. [originally from svn r6978]
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user