From fba698949b56b642423c350ac9c0e39f6a35d9b9 Mon Sep 17 00:00:00 2001 From: deischen Date: Sun, 22 Oct 2000 18:35:11 +0000 Subject: We use ___setjmp (non-signal saving) to setup a signal frame. When adding a signal frame to a thread, be sure to label the context correctly so we don't restore an uninitialized process mask. Reported by: kimc@W8HD.ORG and Andrey Rouskol --- lib/libpthread/thread/thr_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libpthread/thread/thr_sig.c') diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c index 8a9aadf..b2b8c92 100644 --- a/lib/libpthread/thread/thr_sig.c +++ b/lib/libpthread/thread/thr_sig.c @@ -1046,7 +1046,7 @@ thread_sigframe_add(pthread_t thread, int sig) (struct pthread_signal_frame *) stackp; thread->curframe = thread->sigframes[thread->sigframe_count]; thread->curframe->stackp = stackp; - thread->curframe->ctxtype = CTX_JB; + thread->curframe->ctxtype = CTX_JB_NOSIG; thread->curframe->longjmp_val = 1; thread->curframe->signo = sig; -- cgit v1.1