public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] htl: Make joining self return EDEADLK
@ 2020-02-10 1:36 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2020-02-10 1:36 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1905cf47bcfb53d9f7e640db83e43bbe32f9fa4a
commit 1905cf47bcfb53d9f7e640db83e43bbe32f9fa4a
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Mon Feb 10 01:19:00 2020 +0000
htl: Make joining self return EDEADLK
Diff:
---
htl/pt-join.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/htl/pt-join.c b/htl/pt-join.c
index 43878a3..ab77af5 100644
--- a/htl/pt-join.c
+++ b/htl/pt-join.c
@@ -30,6 +30,9 @@ __pthread_join (pthread_t thread, void **status)
struct __pthread *pthread;
int err = 0;
+ if (thread == pthread_self ())
+ return EDEADLK;
+
/* Lookup the thread structure for THREAD. */
pthread = __pthread_getid (thread);
if (pthread == NULL)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-10 1:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 1:36 [glibc] htl: Make joining self return EDEADLK Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).