diff options
Diffstat (limited to 'linuxthreads/pthread.c')
-rw-r--r-- | linuxthreads/pthread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c index b287dc8d03..81261416e2 100644 --- a/linuxthreads/pthread.c +++ b/linuxthreads/pthread.c @@ -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; } } |