diff options
author | paulo <paul@bayleaf.org.uk> | 2009-12-11 16:00:27 +0000 |
---|---|---|
committer | paulo <paul@bayleaf.org.uk> | 2009-12-11 16:00:27 +0000 |
commit | ac0aad499f6d3be08710642ca93718725453ab33 (patch) | |
tree | df18f04d3bd4de7831d39c0b34e8dc92c8306025 /lib/thread.c | |
parent | 302c8d2456ca0a09ac1ff8c07dbd9ba569d85c80 (diff) | |
download | quagga-ac0aad499f6d3be08710642ca93718725453ab33.tar.bz2 quagga-ac0aad499f6d3be08710642ca93718725453ab33.tar.xz |
vty running in main thread. bgp running in its own thread.
Each has its own nexus.
Diffstat (limited to 'lib/thread.c')
-rw-r--r-- | lib/thread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/thread.c b/lib/thread.c index e89af541..589443a0 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -29,6 +29,7 @@ #include "hash.h" #include "command.h" #include "sigevent.h" +#include "qpthreads.h" /* Recent absolute time of day */ struct timeval recent_time; @@ -921,7 +922,8 @@ thread_fetch (struct thread_master *m, struct thread *fetch) int num = 0; /* Signals are highest priority */ - quagga_sigevent_process (); + if (!qpthreads_enabled) + quagga_sigevent_process (); /* Normal event are the next highest priority. */ if ((thread = thread_trim_head (&m->event)) != NULL) |