summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-01-03 02:40:27 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-01-03 02:40:27 +0000
commitf3e2bcfe4cdff60cd22ef253e4a2b170eec12e90 (patch)
tree020cb16b8f21f18fec01a1a00c7f2805026152f7
parenta43e13682e205a5b9215890c7fd108fc0233c385 (diff)
downloadFreeBSD-src-f3e2bcfe4cdff60cd22ef253e4a2b170eec12e90.zip
FreeBSD-src-f3e2bcfe4cdff60cd22ef253e4a2b170eec12e90.tar.gz
Kernel now supports per-thread sigaltstack, follow the change to
enable sigaltstack for scope system thread.
-rw-r--r--lib/libkse/thread/thr_sig.c7
-rw-r--r--lib/libpthread/thread/thr_sig.c7
2 files changed, 2 insertions, 12 deletions
diff --git a/lib/libkse/thread/thr_sig.c b/lib/libkse/thread/thr_sig.c
index b19745c..2a8d667 100644
--- a/lib/libkse/thread/thr_sig.c
+++ b/lib/libkse/thread/thr_sig.c
@@ -469,12 +469,7 @@ thr_sig_invoke_handler(struct pthread *curthread, int sig, siginfo_t *info,
shi.sa_flags = sa_flags;
shi.info = info;
shi.ucp = ucp;
- /*
- * XXX Not ready for scope system thread, kernel bits
- * should involve in
- */
- if ((curthread->attr.flags & PTHREAD_SCOPE_SYSTEM) == 0 &&
- (curthread->sigstk.ss_flags & SS_DISABLE) == 0) {
+ if ((curthread->sigstk.ss_flags & SS_DISABLE) == 0) {
/* Deliver signal on alternative stack */
if (sa_flags & SA_ONSTACK && !onstack)
handle_signal_altstack(curthread, &shi);
diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c
index b19745c..2a8d667 100644
--- a/lib/libpthread/thread/thr_sig.c
+++ b/lib/libpthread/thread/thr_sig.c
@@ -469,12 +469,7 @@ thr_sig_invoke_handler(struct pthread *curthread, int sig, siginfo_t *info,
shi.sa_flags = sa_flags;
shi.info = info;
shi.ucp = ucp;
- /*
- * XXX Not ready for scope system thread, kernel bits
- * should involve in
- */
- if ((curthread->attr.flags & PTHREAD_SCOPE_SYSTEM) == 0 &&
- (curthread->sigstk.ss_flags & SS_DISABLE) == 0) {
+ if ((curthread->sigstk.ss_flags & SS_DISABLE) == 0) {
/* Deliver signal on alternative stack */
if (sa_flags & SA_ONSTACK && !onstack)
handle_signal_altstack(curthread, &shi);
OpenPOWER on IntegriCloud