diff options
author | jhb <jhb@FreeBSD.org> | 2003-04-17 22:21:57 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-04-17 22:21:57 +0000 |
commit | 96015b90e08facc1325dfa510bbe7a265e0118bc (patch) | |
tree | fe1491e67e9166459fe18c741883a612388b5b4b /sys/kern/kern_kse.c | |
parent | e517678fbb354c13b3fc298c6d2f7cd346c99f83 (diff) | |
download | FreeBSD-src-96015b90e08facc1325dfa510bbe7a265e0118bc.zip FreeBSD-src-96015b90e08facc1325dfa510bbe7a265e0118bc.tar.gz |
Protect td_sigmask with the proc lock.
Diffstat (limited to 'sys/kern/kern_kse.c')
-rw-r--r-- | sys/kern/kern_kse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index bfc97ad..784d45b 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.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); } /* |