summaryrefslogtreecommitdiff
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-05-23 04:14:18 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-05-23 04:14:18 +0000
commitcc5d39f81e85729c86c749ed58ea777bd88044fa (patch)
tree846857610b21c78c808bac2e375369460728e177 /sys/kern/kern_synch.c
parenta79c98fa98919681811481268074ee01a99decb9 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index bb2d1e4757b2..eb98bae2dbad 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -416,8 +416,8 @@ msleep(ident, mtx, priority, wmesg, timo)
int priority, timo;
const char *wmesg;
{
- struct proc *p = curproc;
struct thread *td = curthread;
+ struct proc *p = td->td_proc;
int sig, catch = priority & PCATCH;
int rval = 0;
WITNESS_SAVE_DECL(mtx);