Missing unlock.
Approved by: re/jhb
This commit is contained in:
parent
b3cdf7ae2e
commit
0e335eaeb5
@ -111,6 +111,8 @@ _set_curthread(ucontext_t *uc, struct pthread *thr, int *err)
|
||||
if (ldt_free == NULL) {
|
||||
/* Concurrent thread limit reached */
|
||||
*err = curthread->error = EAGAIN;
|
||||
if (thr != _thread_initial)
|
||||
_SPINUNLOCK(&ldt_lock);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user