mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
ntdll: Don't try to join with the main thread.
This commit is contained in:
parent
6410ab1ce8
commit
adb0703cff
@ -356,8 +356,11 @@ 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;
|
||||||
|
|
||||||
pthread_join( thread_data->pthread_id, NULL );
|
if (thread_data->pthread_id)
|
||||||
signal_free_thread( teb );
|
{
|
||||||
|
pthread_join( thread_data->pthread_id, NULL );
|
||||||
|
signal_free_thread( teb );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
close( ntdll_get_thread_data()->wait_fd[0] );
|
close( ntdll_get_thread_data()->wait_fd[0] );
|
||||||
|
Loading…
Reference in New Issue
Block a user