From 96015b90e08facc1325dfa510bbe7a265e0118bc Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 17 Apr 2003 22:21:57 +0000 Subject: Protect td_sigmask with the proc lock. --- sys/kern/kern_thread.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/kern_thread.c') diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index bfc97ad..784d45b 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -747,7 +747,9 @@ thread_getcontext(struct thread *td, ucontext_t *uc) #ifdef __i386__ get_mcontext(td, &uc->uc_mcontext); #endif + PROC_LOCK(td->td_proc); uc->uc_sigmask = td->td_sigmask; + PROC_UNLOCK(td->td_proc); } /* -- cgit v1.1