mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 20:13:02 -04:00
Return EWOULDBLOCK for last thread in kse_release().
Requested by: archie
This commit is contained in:
parent
e46cac58cd
commit
1d2c5bd519
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue