summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-24 19:59:25 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-24 19:59:25 +0000
commit773b2797d0667b7493ddae968f2d78e5b54c673d (patch)
tree1ae1c8a3de5b2be384c0dac0550cadc6dd8d3190 /usr.sbin/bgpd/bgpd.c
parent57a2ceca5c5933da9b07fcc2cc03aa5d52102f02 (diff)
now that we keep track of the routes we added to the kernel we can remove
them easily on shutdown without the RDE's help
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r--usr.sbin/bgpd/bgpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 61278231d9b..4ee58c247e9 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.23 2003/12/24 19:22:00 henning Exp $ */
+/* $OpenBSD: bgpd.c,v 1.24 2003/12/24 19:59:24 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -282,6 +282,8 @@ main(int argc, char *argv[])
i = waitpid(-1, NULL, WNOHANG);
} while (i > 0 || (i == -1 && errno == EINTR));
+ kroute_shutdown(rfd);
+
logit(LOG_CRIT, "Terminating");
return (0);
}