diff options
author | paulo <paul@bayleaf.org.uk> | 2010-01-25 16:18:53 +0000 |
---|---|---|
committer | paulo <paul@bayleaf.org.uk> | 2010-01-25 16:18:53 +0000 |
commit | 649f8b0429dc1b25d65c34ee461e448d8f56f410 (patch) | |
tree | 9c8185dc2e1319a425eeb1ac75b10f27c1d60674 /bgpd/bgp_peer.c | |
parent | c21f7fd3e23791cb6ea8a3b0b968af8892c75931 (diff) | |
download | quagga-649f8b0429dc1b25d65c34ee461e448d8f56f410.tar.bz2 quagga-649f8b0429dc1b25d65c34ee461e448d8f56f410.tar.xz |
Fixed problems in mqueue keeping tail pointers correct. Implemented
program terminate code that waits for all sissions to become disabled
before terminating pthreads and running exit code.
Diffstat (limited to 'bgpd/bgp_peer.c')
-rw-r--r-- | bgpd/bgp_peer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_peer.c b/bgpd/bgp_peer.c index 10fedc86..aa1c8841 100644 --- a/bgpd/bgp_peer.c +++ b/bgpd/bgp_peer.c @@ -303,6 +303,10 @@ bgp_session_has_disabled(bgp_peer peer) bgp_session_enable(peer); } + /* if the program is terminating then see if this was the last session + * and if so ... die .... + */ + program_terminate_if_all_disabled(); return 0; } |