summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-07-06 10:07:03 +0000
committermillert <millert@openbsd.org>1999-07-06 10:07:03 +0000
commit112683754ef2f429a5d344af3c63c136dc208c90 (patch)
tree1f46452fb64d96b609511f2c07ace32a286eea6c
parentUpdate to reflect reality. (diff)
downloadwireguard-openbsd-112683754ef2f429a5d344af3c63c136dc208c90.tar.xz
wireguard-openbsd-112683754ef2f429a5d344af3c63c136dc208c90.zip
union wait -> int
wait3 -> waitpid (for portability)
-rw-r--r--usr.sbin/syslogd/syslogd.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 9c3a9c5b755..5e1292eadff 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: syslogd.c,v 1.33 1999/07/06 10:07:03 millert Exp $ */
+
/*
* Copyright (c) 1983, 1988, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -38,8 +40,11 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-/*static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";*/
-static char rcsid[] = "$NetBSD: syslogd.c,v 1.5 1996/01/02 17:48:41 perry Exp $";
+#if 0
+static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
+#else
+static char rcsid[] = "$OpenBSD: syslogd.c,v 1.33 1999/07/06 10:07:03 millert Exp $";
+#endif
#endif /* not lint */
/*
@@ -825,10 +830,10 @@ void
reapchild(signo)
int signo;
{
- union wait status;
+ int status;
int save_errno = errno;
- while (wait3((int *)&status, WNOHANG, (struct rusage *)NULL) > 0)
+ while (waitpid(-1, &status, WNOHANG) > 0)
;
errno = save_errno;
}