diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-07-21 17:24:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-07-21 17:24:43 +0000 |
commit | dde0763af5353f4646e57e9eb788768aca072a3e (patch) | |
tree | 95a89b0a6a824f6bb415f5b35928227fc27d7995 /nscd | |
parent | acf79996d44130f388549563e303d2c7a25679d1 (diff) | |
download | glibc-dde0763af5353f4646e57e9eb788768aca072a3e.tar.gz glibc-dde0763af5353f4646e57e9eb788768aca072a3e.tar.xz glibc-dde0763af5353f4646e57e9eb788768aca072a3e.zip |
* nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
descriptor received from nscd.
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/nscd_helper.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c index 79644a4da1..50146a093e 100644 --- a/nscd/nscd_helper.c +++ b/nscd/nscd_helper.c @@ -265,7 +265,11 @@ get_mapping (request_type type, const char *key, if (wait_on_socket (sock) <= 0) goto out_close2; - if (__builtin_expect (TEMP_FAILURE_RETRY (__recvmsg (sock, &msg, 0)) +# ifndef MSG_CMSG_CLOEXEC +# define MSG_CMSG_CLOEXEC 0 +# endif + if (__builtin_expect (TEMP_FAILURE_RETRY (__recvmsg (sock, &msg, + MSG_CMSG_CLOEXEC)) != keylen, 0)) goto out_close2; |