mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
* sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
magic number.
This commit is contained in:
@@ -462,7 +462,7 @@ getkeyserv_handle (int vers)
|
||||
clnt_control (kcp->client, CLSET_RETRY_TIMEOUT,
|
||||
(char *)&wait_time);
|
||||
if (clnt_control (kcp->client, CLGET_FD, (char *)&fd))
|
||||
__fcntl (fd, F_SETFD, 1); /* make it "close on exec" */
|
||||
__fcntl (fd, F_SETFD, FD_CLOEXEC); /* make it "close on exec" */
|
||||
|
||||
return kcp->client;
|
||||
}
|
||||
|
Reference in New Issue
Block a user