1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115388

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