summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-01-05 18:21:51 +0000
committerhenning <henning@openbsd.org>2004-01-05 18:21:51 +0000
commit03adb9290c5dea195b9d788dda1231ba9e7fb158 (patch)
treeed27bb98e0d3489863692b0fda977437155e516c
parenttemp/volt sensor for NS PC87366 LPC Super I/O; based on netbsd version; ok deraadt (diff)
downloadwireguard-openbsd-03adb9290c5dea195b9d788dda1231ba9e7fb158.tar.xz
wireguard-openbsd-03adb9290c5dea195b9d788dda1231ba9e7fb158.zip
waitpid's return is a pid_t
-rw-r--r--usr.sbin/bgpd/bgpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 7b5a712cb75..9b35693422d 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.54 2004/01/05 16:21:14 henning Exp $ */
+/* $OpenBSD: bgpd.c,v 1.55 2004/01/05 18:21:51 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -95,7 +95,7 @@ main(int argc, char *argv[])
struct mrt_config mrtconf;
struct mrtdump_config *mconf, *(mrt[POLL_MAX]);
struct pollfd pfd[POLL_MAX];
- pid_t io_pid = 0, rde_pid = 0;
+ pid_t io_pid = 0, rde_pid = 0, pid;
char *conffile;
int debug = 0;
int ch, i, j, n, nfds, csock;
@@ -299,8 +299,8 @@ main(int argc, char *argv[])
kill(rde_pid, SIGTERM);
do {
- i = waitpid(-1, NULL, WNOHANG);
- } while (i > 0 || (i == -1 && errno == EINTR));
+ pid = waitpid(-1, NULL, WNOHANG);
+ } while (pid > 0 || (pid == -1 && errno == EINTR));
control_cleanup();
kroute_shutdown();