Return EWOULDBLOCK for last thread in kse_release().

Requested by: archie
This commit is contained in:
David Xu 2002-11-15 00:53:59 +00:00
parent e46cac58cd
commit 1d2c5bd519
2 changed files with 2 additions and 0 deletions

View file

@ -358,6 +358,7 @@ kse_release(struct thread *td, struct kse_release_args *uap)
} else {
mtx_unlock_spin(&sched_lock);
PROC_UNLOCK(p);
return EWOULDBLOCK;
}
}
return (EINVAL);

View file

@ -358,6 +358,7 @@ kse_release(struct thread *td, struct kse_release_args *uap)
} else {
mtx_unlock_spin(&sched_lock);
PROC_UNLOCK(p);
return EWOULDBLOCK;
}
}
return (EINVAL);