summaryrefslogtreecommitdiffstats
path: root/lib/libthr/arch/sparc64
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-05-25 22:40:57 +0000
committermtm <mtm@FreeBSD.org>2003-05-25 22:40:57 +0000
commitd8e0ed54e351db48278bd6693dde605fcda057df (patch)
tree8bc5a970789c8f2762484249a02b9ccd0ccb6ef6 /lib/libthr/arch/sparc64
parent54155a49a5a2b84f07b579c8e6af7e5f9c8e1d88 (diff)
downloadFreeBSD-src-d8e0ed54e351db48278bd6693dde605fcda057df.zip
FreeBSD-src-d8e0ed54e351db48278bd6693dde605fcda057df.tar.gz
Return gracefully, rather than aborting, when the maximum concurrent
threads per process has been reached. Return EAGAIN, as per spec. Approved by: re/blanket libthr
Diffstat (limited to 'lib/libthr/arch/sparc64')
-rw-r--r--lib/libthr/arch/sparc64/sparc64/_setcurthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/arch/sparc64/sparc64/_setcurthread.c b/lib/libthr/arch/sparc64/sparc64/_setcurthread.c
index 4f1a303..4c0fb88 100644
--- a/lib/libthr/arch/sparc64/sparc64/_setcurthread.c
+++ b/lib/libthr/arch/sparc64/sparc64/_setcurthread.c
@@ -48,9 +48,9 @@ _retire_thread(void *v)
}
void *
-_set_curthread(ucontext_t *uc, struct pthread *thread)
+_set_curthread(ucontext_t *uc, struct pthread *thread, int *err)
{
-
+ *err = 0;
if (uc != NULL)
uc->uc_mcontext.mc_global[6] = (uint64_t)thread;
else
OpenPOWER on IntegriCloud