From fd8b4427a5a052988cfb0778b779cff1a3e09628 Mon Sep 17 00:00:00 2001 From: luoqi Date: Mon, 11 Oct 1999 20:33:17 +0000 Subject: Add a per-signal flag to mark handlers registered with osigaction, so we can provide the correct context to each signal handler. Fix broken sigsuspend(): don't use p_oldsigmask as a flag, use SAS_OLDMASK as we did before the linuxthreads support merge (submitted by bde). Move ps_sigstk from to p_sigacts to the main proc structure since signal stack should not be shared among threads. Move SAS_OLDMASK and SAS_ALTSTACK flags from sigacts::ps_flags to proc::p_flag. Move PS_NOCLDSTOP and PS_NOCLDWAIT flags from proc::p_flag to procsig::ps_flag. Reviewed by: marcel, jdp, bde --- sys/svr4/svr4_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/svr4') diff --git a/sys/svr4/svr4_signal.c b/sys/svr4/svr4_signal.c index 5b8838c..791e9f2 100644 --- a/sys/svr4/svr4_signal.c +++ b/sys/svr4/svr4_signal.c @@ -602,7 +602,7 @@ svr4_sys_context(p, uap) case 0: DPRINTF(("getcontext(%p)\n", uap->uc)); svr4_getcontext(p, &uc, &p->p_sigmask, - p->p_sigacts->ps_sigstk.ss_flags & SS_ONSTACK); + p->p_sigstk.ss_flags & SS_ONSTACK); return copyout(&uc, uap->uc, sizeof(uc)); case 1: -- cgit v1.1