Commit 174bb777 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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.
parent e2b1de52
......@@ -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 );
......
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