summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-05-29 20:49:17 +0000
committermtm <mtm@FreeBSD.org>2003-05-29 20:49:17 +0000
commitc9c9423632b4eeb62740ecfc805b6ef66cea77f9 (patch)
tree54512df8c62864c58bf39a1518635270e23748d1 /lib/libthr
parente0fdf7a90db60211ee59359697c41dab2d566785 (diff)
downloadFreeBSD-src-c9c9423632b4eeb62740ecfc805b6ef66cea77f9.zip
FreeBSD-src-c9c9423632b4eeb62740ecfc805b6ef66cea77f9.tar.gz
Missing unlock.
Approved by: re/jhb
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/arch/i386/i386/_setcurthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libthr/arch/i386/i386/_setcurthread.c b/lib/libthr/arch/i386/i386/_setcurthread.c
index 2cd27ca..81db3e9 100644
--- a/lib/libthr/arch/i386/i386/_setcurthread.c
+++ b/lib/libthr/arch/i386/i386/_setcurthread.c
@@ -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);
}
OpenPOWER on IntegriCloud