rpcrt4: Set the socket back to blocking in rpcrt4_conn_tcp_handoff as

the read and write function for the protseq assume that syscalls will block.
This commit is contained in:
Rob Shearman 2006-10-31 19:01:56 +00:00 committed by Alexandre Julliard
parent e2e05d0493
commit 828c733f72
1 changed files with 2 additions and 0 deletions

View File

@ -684,6 +684,8 @@ static RPC_STATUS rpcrt4_conn_tcp_handoff(RpcConnection *old_conn, RpcConnection
ERR("Failed to accept a TCP connection: error %d\n", ret);
return RPC_S_SERVER_UNAVAILABLE;
}
/* reset to blocking behaviour */
fcntl(ret, F_SETFL, 0);
client->sock = ret;
TRACE("Accepted a new TCP connection\n");
return RPC_S_OK;