summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-05 18:21:52 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-05 18:21:52 +0000
commit07a927373f7ae56c4dc418838f705d991411fbfe (patch)
tree4a971483d6cd2ee24fafac557619c533fdae1bfc /usr.sbin
parent5f489c3a541cdacf308d0b28e833dc20d80f9714 (diff)
waitpid's return is a pid_t
Diffstat (limited to 'usr.sbin')
-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();