summaryrefslogtreecommitdiffstats
path: root/lib/qpthreads.c
diff options
context:
space:
mode:
authorChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-06 23:25:39 +0000
committerChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-06 23:25:39 +0000
commit20b6b088dd8864472dc03b1aaabfbb33d9b7ad47 (patch)
treec5c6089e9da2a7a6fe61fa72100fddf4e50230dd /lib/qpthreads.c
parent391f49fa132d167378dffbad44ac87d71dfa6b80 (diff)
downloadquagga-20b6b088dd8864472dc03b1aaabfbb33d9b7ad47.tar.bz2
quagga-20b6b088dd8864472dc03b1aaabfbb33d9b7ad47.tar.xz
Updates to lib/qpthreads.c & .h
Added qpt_thread_self(). Initialised output sigset_t before setting it in qpt_thread_sigmask().
Diffstat (limited to 'lib/qpthreads.c')
-rw-r--r--lib/qpthreads.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/qpthreads.c b/lib/qpthreads.c
index 61ad80fc..1bfb4ddc 100644
--- a/lib/qpthreads.c
+++ b/lib/qpthreads.c
@@ -459,6 +459,9 @@ qpt_thread_sigmask(int how, const sigset_t* set, sigset_t* oset)
{
int err ;
+ if (oset != NULL)
+ sigemptyset(oset) ; /* to make absolutely sure */
+
err = pthread_sigmask(how, set, oset) ;
if (err != 0)
zabort_err("pthread_sigmask failed", err) ;