aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-08-29 18:00:11 +0000
committerWarner Losh <imp@FreeBSD.org>1997-08-29 18:00:11 +0000
commit83eea89664dede7613f0def241f570f88c5b410d (patch)
tree1bab1787d9a87017cc2c9941c83633fde0d08bd0
parent57fe49bd03b6d8e8a9949e77173f5ceb2076f849 (diff)
downloadsrc-83eea89664dede7613f0def241f570f88c5b410d.tar.gz
src-83eea89664dede7613f0def241f570f88c5b410d.zip
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>
Notes
Notes: svn path=/head/; revision=28907
-rw-r--r--usr.sbin/inetd/inetd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 86bb95d08c3d..1a7396bc052f 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -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)