From 31f3b159e3cb07c2733fd7662da6f1abd689ee3f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 26 Jul 2008 23:12:04 +0000 Subject: * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of magic number. --- sunrpc/key_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sunrpc') diff --git a/sunrpc/key_call.c b/sunrpc/key_call.c index 611c37256c..319d8017e8 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; } -- cgit 1.4.1