Commit adb0703c authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Don't try to join with the main thread.

parent 6410ab1c
...@@ -356,9 +356,12 @@ void exit_thread( int status ) ...@@ -356,9 +356,12 @@ void exit_thread( int status )
{ {
struct ntdll_thread_data *thread_data = (struct ntdll_thread_data *)teb->SpareBytes1; struct ntdll_thread_data *thread_data = (struct ntdll_thread_data *)teb->SpareBytes1;
if (thread_data->pthread_id)
{
pthread_join( thread_data->pthread_id, NULL ); pthread_join( thread_data->pthread_id, NULL );
signal_free_thread( teb ); signal_free_thread( teb );
} }
}
close( ntdll_get_thread_data()->wait_fd[0] ); close( ntdll_get_thread_data()->wait_fd[0] );
close( ntdll_get_thread_data()->wait_fd[1] ); close( ntdll_get_thread_data()->wait_fd[1] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment