1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Remove and odd sleep found by David Holland and posted to -security.

Reviewed by:	Theo de Raadt (who put it into OpenBSD)
Submitted by:	David Holland <dholland@eecs.harvard.edu>
This commit is contained in:
Warner Losh 1997-08-29 18:00:11 +00:00
parent 57fe49bd03
commit 83eea89664
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28907

View File

@ -40,7 +40,7 @@ static char copyright[] __attribute__ ((unused)) =
#ifndef lint
/* from: @(#)inetd.c 8.4 (Berkeley) 4/13/94"; */
static char inetd_c_rcsid[] __attribute__ ((unused)) =
"$Id: inetd.c,v 1.23 1997/04/28 13:55:07 wollman Exp $";
"$Id: inetd.c,v 1.24 1997/05/10 18:59:11 davidn Exp $";
#endif /* not lint */
/*
@ -387,9 +387,10 @@ main(argc, argv, envp)
readable = allsock;
if ((n = select(maxsock + 1, &readable, (fd_set *)0,
(fd_set *)0, (struct timeval *)0)) <= 0) {
if (n < 0 && errno != EINTR)
if (n < 0 && errno != EINTR) {
syslog(LOG_WARNING, "select: %m");
sleep(1);
sleep(1);
}
continue;
}
for (sep = servtab; n && sep; sep = sep->se_next)