diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-03-21 01:16:05 +0000 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-03-21 01:16:05 +0000 |
commit | 9470cb2c32eab220f796b1438b787528272cbe84 (patch) | |
tree | b9b2cc12446173436d2bc7a32e82cc3378ec721e /lib/thread.c | |
parent | 5cae7eea451f2b7d65b5892e2c1dafc70f8b836e (diff) | |
download | quagga-ex11p.tar.bz2 quagga-ex11p.tar.xz |
Upgrade of "pipework" -- including piping to/from shell commandsex11p
Version 0.99.15ex11p
A major overhaul.
Diffstat (limited to 'lib/thread.c')
-rw-r--r-- | lib/thread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/thread.c b/lib/thread.c index 7a9a3a60..cf2ec425 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -44,8 +44,8 @@ static unsigned short timers_inited; /* cpu stats needs to be qpthread safe. */ static qpt_mutex_t thread_mutex; -#define LOCK qpt_mutex_lock(&thread_mutex); -#define UNLOCK qpt_mutex_unlock(&thread_mutex); +#define LOCK qpt_mutex_lock(thread_mutex); +#define UNLOCK qpt_mutex_unlock(thread_mutex); static struct hash *cpu_record = NULL; /* Pointer to qtimer pile to be used, if any */ @@ -468,7 +468,7 @@ thread_master_create () { #ifdef USE_MQUEUE sigfillset (&newmask); - sigdelset (&newmask, SIGMQUEUE); + sigdelset (&newmask, SIG_INTERRUPT); #endif if (cpu_record == NULL) @@ -1399,14 +1399,14 @@ funcname_thread_execute (struct thread_master *m, void thread_init_r (void) { - qpt_mutex_init(&thread_mutex, qpt_mutex_quagga); + qpt_mutex_init(thread_mutex, qpt_mutex_quagga); } /* Finished with module */ void thread_finish (void) { - qpt_mutex_destroy(&thread_mutex, 0); + qpt_mutex_destroy(thread_mutex, 0); } #undef USE_MQUEUE |