Don't wedge in an infinite loop if NFSSERVER is not configured.

This commit is contained in:
mycroft 1994-10-18 16:00:17 +00:00
parent 1b62a0967f
commit 0e4ea99974
2 changed files with 10 additions and 4 deletions

View File

@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)nfsd.c 8.7 (Berkeley) 2/22/94";*/
static char *rcsid = "$Id: nfsd.c,v 1.13 1994/10/18 14:12:55 mycroft Exp $";
static char *rcsid = "$Id: nfsd.c,v 1.14 1994/10/18 16:00:17 mycroft Exp $";
#endif not lint
#include <sys/param.h>
@ -560,5 +560,8 @@ reapchild(signo)
int signo;
{
while (wait3(NULL, WNOHANG, NULL));
for (;;) {
if (wait3(NULL, WNOHANG, NULL) < 0 && errno != EINTR)
break;
}
}

View File

@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)nfsd.c 8.7 (Berkeley) 2/22/94";*/
static char *rcsid = "$Id: nfsd.c,v 1.13 1994/10/18 14:12:55 mycroft Exp $";
static char *rcsid = "$Id: nfsd.c,v 1.14 1994/10/18 16:00:17 mycroft Exp $";
#endif not lint
#include <sys/param.h>
@ -560,5 +560,8 @@ reapchild(signo)
int signo;
{
while (wait3(NULL, WNOHANG, NULL));
for (;;) {
if (wait3(NULL, WNOHANG, NULL) < 0 && errno != EINTR)
break;
}
}