From f3e2bcfe4cdff60cd22ef253e4a2b170eec12e90 Mon Sep 17 00:00:00 2001 From: davidxu Date: Sat, 3 Jan 2004 02:40:27 +0000 Subject: Kernel now supports per-thread sigaltstack, follow the change to enable sigaltstack for scope system thread. --- lib/libkse/thread/thr_sig.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/libkse/thread/thr_sig.c') 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); -- cgit v1.1