aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/key_call.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-07-26 23:12:04 +0000
committerUlrich Drepper <drepper@redhat.com>2008-07-26 23:12:04 +0000
commit31f3b159e3cb07c2733fd7662da6f1abd689ee3f (patch)
treed3b93c669dfe09562cf7e80e963cc452b93dace5 /sunrpc/key_call.c
parentc0216dfc6262a4f1379b990e4076127f1f47c6d1 (diff)
downloadglibc-31f3b159e3cb07c2733fd7662da6f1abd689ee3f.zip
glibc-31f3b159e3cb07c2733fd7662da6f1abd689ee3f.tar.gz
glibc-31f3b159e3cb07c2733fd7662da6f1abd689ee3f.tar.bz2
* sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
magic number.
Diffstat (limited to 'sunrpc/key_call.c')
-rw-r--r--sunrpc/key_call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/key_call.c b/sunrpc/key_call.c
index 611c372..319d801 100644
--- a/sunrpc/key_call.c
+++ b/sunrpc/key_call.c
@@ -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;
}