Minor nit: get p pointer in msleep() from td->td_proc (where
td == curthread) rather than from curproc.
This commit is contained in:
parent
a79c98fa98
commit
cc5d39f81e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user