Only retry if we were able to clean up some descriptors, otherwise we get

into an infinite loop.
This commit is contained in:
christos 2006-10-17 17:44:34 +00:00
parent 971dccffbf
commit 51739e272e
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: svc_vc.c,v 1.19 2006/06/22 19:35:34 christos Exp $ */
/* $NetBSD: svc_vc.c,v 1.20 2006/10/17 17:44:34 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -35,7 +35,7 @@
static char *sccsid = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";
static char *sccsid = "@(#)svc_tcp.c 2.2 88/08/01 4.0 RPCSRC";
#else
__RCSID("$NetBSD: svc_vc.c,v 1.19 2006/06/22 19:35:34 christos Exp $");
__RCSID("$NetBSD: svc_vc.c,v 1.20 2006/10/17 17:44:34 christos Exp $");
#endif
#endif
@ -335,8 +335,8 @@ again:
*/
if (errno == EMFILE || errno == ENFILE) {
cleanfds = svc_fdset;
__svc_clean_idle(&cleanfds, 0, FALSE);
goto again;
if (__svc_clean_idle(&cleanfds, 0, FALSE))
goto again;
}
return (FALSE);
}