Don't use NULL (pointer) when we mean 0 (integer) for the number of ticks

in msleep.
This commit is contained in:
Peter Wemm 2003-12-23 02:28:42 +00:00
parent 124a5c5795
commit 55cdddc0d8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123737
2 changed files with 2 additions and 2 deletions

View File

@ -1769,7 +1769,7 @@ thread_userret(struct thread *td, struct trapframe *frame)
break;
mtx_unlock_spin(&sched_lock);
if (msleep(&p->p_numthreads, &p->p_mtx, PPAUSE|PCATCH,
"maxthreads", NULL)) {
"maxthreads", 0)) {
mtx_lock_spin(&sched_lock);
break;
} else {

View File

@ -1769,7 +1769,7 @@ thread_userret(struct thread *td, struct trapframe *frame)
break;
mtx_unlock_spin(&sched_lock);
if (msleep(&p->p_numthreads, &p->p_mtx, PPAUSE|PCATCH,
"maxthreads", NULL)) {
"maxthreads", 0)) {
mtx_lock_spin(&sched_lock);
break;
} else {