about summary refs log tree commit diff
path: root/nscd/connections.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-15 22:57:20 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-15 22:57:20 +0000
commit282c00a71a9aa4ed23984d147d9b0d2a712755d3 (patch)
tree59e00e96443104f8a052ccdbef6030d866c01b6d /nscd/connections.c
parentc841fa224a0ce83353f257fa86aa90413ebf68a4 (diff)
downloadglibc-282c00a71a9aa4ed23984d147d9b0d2a712755d3.tar.gz
glibc-282c00a71a9aa4ed23984d147d9b0d2a712755d3.tar.xz
glibc-282c00a71a9aa4ed23984d147d9b0d2a712755d3.zip
(nscd_run): Protect accept with TEMP_FAILURE_RETRY.
Diffstat (limited to 'nscd/connections.c')
-rw-r--r--nscd/connections.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index e61c39c749..d85af4d561 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -1,5 +1,5 @@
 /* Inner loops of cache daemon.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1998,1999,2000,2001,2002,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -460,7 +460,7 @@ nscd_run (void *p)
       if (conn.revents & (POLLRDNORM|POLLERR|POLLHUP|POLLNVAL))
 	{
 	  /* Accept the connection.  */
-	  int fd = accept (conn.fd, NULL, NULL);
+	  int fd = TEMP_FAILURE_RETRY (accept (conn.fd, NULL, NULL));
 	  request_header req;
 	  char buf[256];
 	  uid_t uid = 0;