Skip to content

Commit

Permalink
* sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
Browse files Browse the repository at this point in the history
	magic number.
  • Loading branch information
Ulrich Drepper committed Jul 26, 2008
1 parent c0216df commit 31f3b15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sunrpc/key_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 31f3b15

Please sign in to comment.