diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-04-17 22:21:57 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-04-17 22:21:57 +0000 |
| commit | 94df4b85844c22f103769e1e6434ddedfbca5805 (patch) | |
| tree | fe1491e67e9166459fe18c741883a612388b5b4b /sys/kern/kern_thr.c | |
| parent | 538621734a69562b17c1a09c7d0b2d971bccb20c (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_thr.c')
| -rw-r--r-- | sys/kern/kern_thr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index c2a2103578c0..488cf6f320d7 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -153,7 +153,9 @@ thr_create(struct thread *td, struct thr_create_args *uap) (unsigned) RANGEOF(struct thread, td_startcopy, td_endcopy)); td0->td_proc = td->td_proc; + PROC_LOCK(td->td_proc); td0->td_sigmask = td->td_sigmask; + PROC_UNLOCK(td->td_proc); bcopy(td->td_frame, td0->td_frame, sizeof(struct trapframe)); td0->td_ucred = crhold(td->td_ucred); |
