From: Ulrich Drepper Date: Sat, 26 Jul 2008 23:12:04 +0000 (+0000) Subject: * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of X-Git-Tag: cvs/fedora-glibc-20080728T2320~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31f3b159e3cb07c2733fd7662da6f1abd689ee3f;p=thirdparty%2Fglibc.git * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of magic number. --- diff --git a/ChangeLog b/ChangeLog index 787307931ad..162bbaee358 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-07-26 Ulrich Drepper + * 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 diff --git a/sunrpc/key_call.c b/sunrpc/key_call.c index 611c37256c1..319d8017e81 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; }