diff options
author | paulo <paul@bayleaf.org.uk> | 2010-01-22 18:04:18 +0000 |
---|---|---|
committer | paulo <paul@bayleaf.org.uk> | 2010-01-22 18:04:18 +0000 |
commit | eeda1184fa60c5077c2d404d0a8415d11e836ccd (patch) | |
tree | 2fbf5caf7362cfb47d2a84cdacac0283ec77aa72 /lib/qpnexus.c | |
parent | 27d6ee80efd93c2f82de06787483630756164605 (diff) | |
download | quagga-eeda1184fa60c5077c2d404d0a8415d11e836ccd.tar.bz2 quagga-eeda1184fa60c5077c2d404d0a8415d11e836ccd.tar.xz |
Fix "write file" command so reports "threaded". Working on Shutdown and
HUP. Shutdown needs mechanism to know when bgp_engine has closed
everything. HUP don't understand how it is supposed to cope with added/
deleted/retained peers and get them going again.
Diffstat (limited to 'lib/qpnexus.c')
-rw-r--r-- | lib/qpnexus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/qpnexus.c b/lib/qpnexus.c index 731190b6..5a243d0f 100644 --- a/lib/qpnexus.c +++ b/lib/qpnexus.c @@ -264,5 +264,6 @@ qpn_terminate(qpn_nexus qpn) { qpn->terminate = 1; /* wake up any pselect */ - qpt_thread_signal(qpn->thread_id, SIGMQUEUE); + if (qpthreads_enabled) + qpt_thread_signal(qpn->thread_id, SIGMQUEUE); } |