From 46e6ba39f10b4874298cd617b4db656bb562eb37 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 31 Mar 2003 22:49:17 +0000 Subject: - Move p->p_sigmask to td->td_sigmask. Signal masks will be per thread with a follow on commit to kern_sig.c - signotify() now operates on a thread since unmasked pending signals are stored in the thread. - PS_NEEDSIGCHK moves to TDF_NEEDSIGCHK. --- sys/kern/kern_context.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern/kern_context.c') diff --git a/sys/kern/kern_context.c b/sys/kern/kern_context.c index 1cc0eac..d1b657f 100644 --- a/sys/kern/kern_context.c +++ b/sys/kern/kern_context.c @@ -73,7 +73,7 @@ getcontext(struct thread *td, struct getcontext_args *uap) ret = EINVAL; else { get_mcontext(td, &uc.uc_mcontext); - uc.uc_sigmask = td->td_proc->p_sigmask; + uc.uc_sigmask = td->td_sigmask; ret = copyout(&uc, uap->ucp, UC_COPY_SIZE); } return (ret); @@ -97,7 +97,7 @@ setcontext(struct thread *td, struct setcontext_args *uap) if (ret == 0) { SIG_CANTMASK(uc.uc_sigmask); PROC_LOCK(td->td_proc); - td->td_proc->p_sigmask = uc.uc_sigmask; + td->td_sigmask = uc.uc_sigmask; PROC_UNLOCK(td->td_proc); } } @@ -115,7 +115,7 @@ swapcontext(struct thread *td, struct swapcontext_args *uap) ret = EINVAL; else { get_mcontext(td, &uc.uc_mcontext); - uc.uc_sigmask = td->td_proc->p_sigmask; + uc.uc_sigmask = td->td_sigmask; ret = copyout(&uc, uap->oucp, UC_COPY_SIZE); if (ret == 0) { ret = copyin(uap->ucp, &uc, UC_COPY_SIZE); @@ -124,7 +124,7 @@ swapcontext(struct thread *td, struct swapcontext_args *uap) if (ret == 0) { SIG_CANTMASK(uc.uc_sigmask); PROC_LOCK(td->td_proc); - td->td_proc->p_sigmask = uc.uc_sigmask; + td->td_sigmask = uc.uc_sigmask; PROC_UNLOCK(td->td_proc); } } -- cgit v1.1