Missing unlock.

Approved by:	re/jhb
This commit is contained in:
Mike Makonnen 2003-05-29 20:49:17 +00:00
parent b3cdf7ae2e
commit 0e335eaeb5

View File

@ -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);
}