summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-06 04:13:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-06 04:13:13 +0000
commit9924fc585dfa40f6451e0c60f5b9fce54bb73d57 (patch)
tree38f4709161a933800180b2c6783eefb1c1af6504 /usr.sbin
parent5bd6bf2efed6f5df9b8670886242754339cec249 (diff)
fixing a portmap bug i introduced just before release makes me happy
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/portmap/portmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c
index 461d6779d8a..a61a06b2def 100644
--- a/usr.sbin/portmap/portmap.c
+++ b/usr.sbin/portmap/portmap.c
@@ -40,7 +40,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)portmap.c 5.4 (Berkeley) 4/19/91";*/
-static char rcsid[] = "$Id: portmap.c,v 1.10 1996/07/31 11:09:15 deraadt Exp $";
+static char rcsid[] = "$Id: portmap.c,v 1.11 1996/10/06 04:13:12 deraadt Exp $";
#endif /* not lint */
/*
@@ -627,7 +627,7 @@ reap()
{
int save_errno = errno;
- while (wait3(NULL, WNOHANG, NULL) != -1)
+ while (wait3(NULL, WNOHANG, NULL) > 0)
;
errno = save_errno;
}