Minor nit: get p pointer in msleep() from td->td_proc (where

td == curthread) rather than from curproc.
This commit is contained in:
John Baldwin 2002-05-23 04:14:18 +00:00
parent a79c98fa98
commit cc5d39f81e

View File

@ -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);