From: Ulrich Drepper Date: Wed, 15 Jan 2003 22:57:20 +0000 (+0000) Subject: (nscd_run): Protect accept with TEMP_FAILURE_RETRY. X-Git-Tag: upstream/2.30~20248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=282c00a71a9aa4ed23984d147d9b0d2a712755d3;p=external%2Fglibc.git (nscd_run): Protect accept with TEMP_FAILURE_RETRY. --- diff --git a/nscd/connections.c b/nscd/connections.c index e61c39c..d85af4d 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 , 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;