mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-14 07:10:05 +00:00
(pthread_onexit_process): Don't call free after threads have been
asynchronously terminated.
This commit is contained in:
parent
7ffb7f860d
commit
a906a464fc
@ -795,7 +795,9 @@ static void pthread_onexit_process(int retcode, void *arg)
|
||||
if (self == __pthread_main_thread)
|
||||
{
|
||||
waitpid(__pthread_manager_thread.p_pid, NULL, __WCLONE);
|
||||
free (__pthread_manager_thread_bos);
|
||||
/* Since all threads have been asynchronously terminated
|
||||
(possibly holding locks), free cannot be used any more. */
|
||||
/*free (__pthread_manager_thread_bos);*/
|
||||
__pthread_manager_thread_bos = __pthread_manager_thread_tos = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user