mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
htl: Make joining self return EDEADLK
This commit is contained in:
@@ -30,6 +30,9 @@ __pthread_join (pthread_t thread, void **status)
|
|||||||
struct __pthread *pthread;
|
struct __pthread *pthread;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
|
if (thread == pthread_self ())
|
||||||
|
return EDEADLK;
|
||||||
|
|
||||||
/* Lookup the thread structure for THREAD. */
|
/* Lookup the thread structure for THREAD. */
|
||||||
pthread = __pthread_getid (thread);
|
pthread = __pthread_getid (thread);
|
||||||
if (pthread == NULL)
|
if (pthread == NULL)
|
||||||
|
Reference in New Issue
Block a user