]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
authorUlrich Drepper <drepper@redhat.com>
Sat, 26 Jul 2008 23:12:04 +0000 (23:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 26 Jul 2008 23:12:04 +0000 (23:12 +0000)
magic number.

ChangeLog
sunrpc/key_call.c

index 787307931adf057a7ad559f9f92951b07e963805..162bbaee358bc6d8b53146b053b0ffd26928df69 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 611c37256c179adce4b1d30a70c66db7d6d35b24..319d8017e81703d199c737c046071faf02c96d2a 100644 (file)
@@ -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;
 }