summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-09-23 01:55:06 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-09-23 01:55:06 +0000
commitc133a5b43ce9ba14bfa295ddbd1851a33a460a67 (patch)
tree4dea501736d162c290e71c72a52b1c5774c75fd0 /usr.sbin/bgpd
parentd9df44daa86b9b61747e1340fd7220b04c1916ab (diff)
after receival of a SIGCHLD reset io_pid or rde_pid, respectively, dependent
on which child went away.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/bgpd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 35882b6bd07..381ce2ed37e 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.108 2004/09/16 17:36:29 henning Exp $ */
+/* $OpenBSD: bgpd.c,v 1.109 2004/09/23 01:55:05 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -300,10 +300,14 @@ main(int argc, char *argv[])
if (sigchld) {
sigchld = 0;
- if (check_child(io_pid, "session engine"))
+ if (check_child(io_pid, "session engine")) {
quit = 1;
- if (check_child(rde_pid, "route decision engine"))
+ io_pid = 0;
+ }
+ if (check_child(rde_pid, "route decision engine")) {
quit = 1;
+ rde_pid = 0;
+ }
}
if (mrtdump == 1) {