ntdll: Workaround sendmsg bug on macOS.
There's a race on macOS when sending socket fd with sendmsg. The fd may get broken if it's closed before recvmsg is called.
This commit is contained in:
parent
e2b1de523e
commit
174bb7776d
1 changed files with 1 additions and 1 deletions
|
@ -846,7 +846,6 @@ NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_
|
|||
#endif
|
||||
|
||||
wine_server_send_fd( socketfd[1] );
|
||||
close( socketfd[1] );
|
||||
|
||||
/* create the process on the server side */
|
||||
|
||||
|
@ -875,6 +874,7 @@ NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_
|
|||
process_info = wine_server_ptr_handle( reply->info );
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
close( socketfd[1] );
|
||||
free( objattr );
|
||||
free( handles );
|
||||
free( jobs );
|
||||
|
|
Loading…
Add table
Reference in a new issue