diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-23 01:55:06 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-23 01:55:06 +0000 |
commit | c133a5b43ce9ba14bfa295ddbd1851a33a460a67 (patch) | |
tree | 4dea501736d162c290e71c72a52b1c5774c75fd0 | |
parent | d9df44daa86b9b61747e1340fd7220b04c1916ab (diff) |
after receival of a SIGCHLD reset io_pid or rde_pid, respectively, dependent
on which child went away.
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 10 |
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) { |