summaryrefslogtreecommitdiff
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-29 17:07:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-29 17:07:05 +0000
commit5fbbf0755ec7a6f75c1613704b20f034beee7569 (patch)
tree8c3438f8ce16c61001f6f2254ad3181e1c9d7291 /usr.sbin/inetd
parentbc97d70b104321c37625720fd106238186cb9029 (diff)
very weird sleep; dholland@eecs.harvard.edu
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/inetd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 67a19e8c002..1f88f776d8b 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.37 1997/08/04 19:26:10 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.38 1997/08/29 17:07:04 deraadt Exp $ */
/* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
@@ -41,7 +41,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/
-static char rcsid[] = "$OpenBSD: inetd.c,v 1.37 1997/08/04 19:26:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.38 1997/08/29 17:07:04 deraadt Exp $";
#endif /* not lint */
/*
@@ -402,9 +402,10 @@ main(argc, argv, envp)
}
readable = allsock;
if ((n = select(maxsock + 1, &readable, NULL, NULL, NULL)) <= 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)