From cc5d39f81e85729c86c749ed58ea777bd88044fa Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 23 May 2002 04:14:18 +0000 Subject: [PATCH] Minor nit: get p pointer in msleep() from td->td_proc (where td == curthread) rather than from curproc. --- sys/kern/kern_synch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index bb2d1e4757b..eb98bae2dba 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); -- 2.45.2