diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-01-30 20:34:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-01-30 20:34:21 +0000 |
commit | 6925ef9a679d24f7a3bff1dd138604682da11c12 (patch) | |
tree | 3928697a38d6a6a3ae424fb52d0675d88f3b2274 /nscd/nscd_helper.c | |
parent | 2af4049472d2f8f5113d5899a574e702e5a4e294 (diff) | |
download | glibc-6925ef9a679d24f7a3bff1dd138604682da11c12.tar glibc-6925ef9a679d24f7a3bff1dd138604682da11c12.tar.gz glibc-6925ef9a679d24f7a3bff1dd138604682da11c12.tar.bz2 glibc-6925ef9a679d24f7a3bff1dd138604682da11c12.zip |
Update.
2005-01-30 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
* nscd/connections.c (send_ro_fd): Likewise.
Diffstat (limited to 'nscd/nscd_helper.c')
-rw-r--r-- | nscd/nscd_helper.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c index 0e16cb8aeb..ea4fb968db 100644 --- a/nscd/nscd_helper.c +++ b/nscd/nscd_helper.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998-2002, 2003, 2004 Free Software Foundation, Inc. +/* Copyright (C) 1998-2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. @@ -138,7 +138,10 @@ get_mapping (request_type type, const char *key, /* Failure or timeout. */ goto out_close2; - if (TEMP_FAILURE_RETRY (__recvmsg (sock, &msg, 0)) != keylen) +#ifndef MSG_NOSIGNAL +# define MSG_NOSIGNAL 0 +#endif + if (TEMP_FAILURE_RETRY (__recvmsg (sock, &msg, MSG_NOSIGNAL)) != keylen) goto out_close2; mapfd = *(int *) CMSG_DATA (cmsg); |