diff options
author | jeff <jeff@FreeBSD.org> | 2003-03-31 22:49:17 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-03-31 22:49:17 +0000 |
commit | 46e6ba39f10b4874298cd617b4db656bb562eb37 (patch) | |
tree | da7bdaf8a9eef1885d86203074ba0ad8ae222e7c /sys/kern/kern_context.c | |
parent | 803202f956e45b36a05029bd98db32041fa3a23d (diff) | |
download | FreeBSD-src-46e6ba39f10b4874298cd617b4db656bb562eb37.zip FreeBSD-src-46e6ba39f10b4874298cd617b4db656bb562eb37.tar.gz |
- 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.
Diffstat (limited to 'sys/kern/kern_context.c')
-rw-r--r-- | sys/kern/kern_context.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } |