KSE-enabled processes only.

This commit is contained in:
David Xu 2002-10-31 08:00:51 +00:00
parent fd4a61e809
commit adac9400a7
2 changed files with 8 additions and 2 deletions

View File

@ -273,9 +273,12 @@ kse_thr_interrupt(struct thread *td, struct kse_thr_interrupt_args *uap)
struct proc *p;
struct thread *td2;
p = td->td_proc;
/* KSE-enabled processes only, please. */
if (!(p->p_flag & P_KSES))
return (EINVAL);
if (uap->tmbx == NULL)
return (EINVAL);
p = td->td_proc;
mtx_lock_spin(&sched_lock);
FOREACH_THREAD_IN_PROC(p, td2) {
if (td2->td_mailbox == uap->tmbx) {

View File

@ -273,9 +273,12 @@ kse_thr_interrupt(struct thread *td, struct kse_thr_interrupt_args *uap)
struct proc *p;
struct thread *td2;
p = td->td_proc;
/* KSE-enabled processes only, please. */
if (!(p->p_flag & P_KSES))
return (EINVAL);
if (uap->tmbx == NULL)
return (EINVAL);
p = td->td_proc;
mtx_lock_spin(&sched_lock);
FOREACH_THREAD_IN_PROC(p, td2) {
if (td2->td_mailbox == uap->tmbx) {