mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-12 16:20:06 +00:00
* sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
magic number.
This commit is contained in:
parent
c0216dfc62
commit
31f3b159e3
@ -1,5 +1,8 @@
|
||||
2008-07-26 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
|
||||
magic number.
|
||||
|
||||
* misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
|
||||
|
||||
* malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user