From 773b2797d0667b7493ddae968f2d78e5b54c673d Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 24 Dec 2003 19:59:25 +0000 Subject: 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 --- usr.sbin/bgpd/bgpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd/bgpd.c') 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 @@ -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); } -- cgit v1.2.3