summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2003-09-13 15:26:38 +0000
committerchristos <christos@NetBSD.org>2003-09-13 15:26:38 +0000
commitd1bb4290e81b295a3af73aff64f4c19bdb708f78 (patch)
tree3189c893aa23ccd319a6da90a985f83c11baa5f9 /lib/libpthread
parentdecf23e1e4afb6dc2628df24b5a3f1419ad29003 (diff)
explicitly use a sigset_t * variable to recover the signal mask pointer.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/pthread_sig.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libpthread/pthread_sig.c b/lib/libpthread/pthread_sig.c
index 7432c9c3b57..e3ff60e3bfb 100644
--- a/lib/libpthread/pthread_sig.c
+++ b/lib/libpthread/pthread_sig.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_sig.c,v 1.20 2003/09/12 15:31:00 drochner Exp $ */
+/* $NetBSD: pthread_sig.c,v 1.21 2003/09/13 15:26:38 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_sig.c,v 1.20 2003/09/12 15:31:00 drochner Exp $");
+__RCSID("$NetBSD: pthread_sig.c,v 1.21 2003/09/13 15:26:38 christos Exp $");
/* We're interposing a specific version of the signal interface. */
#define __LIBC12_SOURCE__
@@ -913,12 +913,12 @@ pthread__signal_tramp(void (*handler)(int, siginfo_t *, void *),
#else
{
struct pthread__sigcontext psc;
-
/*
* XXX we don't support siginfo here yet.
- * Note that uc_stack.ss_sp holds the ol sigmask
+ * Note that uc_stack.ss_sp holds the old sigmask
*/
- PTHREAD_UCONTEXT_TO_SIGCONTEXT(uc->uc_stack.ss_sp, uc, &psc);
+ sigset_t *maskp = uc->uc_stack.ss_sp;
+ PTHREAD_UCONTEXT_TO_SIGCONTEXT(maskp, uc, &psc);
(*((void *)(*)(int, int, struct sigcontext *)handler))
(si->si_signo, si->si_trap, &psc.psc_context);
PTHREAD_SIGCONTEXT_TO_UCONTEXT(&psc, uc);