Rob Shearman : rpcrt4:
Set the socket back to blocking in rpcrt4_conn_tcp_handoff as
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 31 15:07:57 CST 2006
Module: wine
Branch: master
Commit: 828c733f72cd45f6b356d741336afbafb3da71eb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=828c733f72cd45f6b356d741336afbafb3da71eb
Author: Rob Shearman <rob at codeweavers.com>
Date: Tue Oct 31 19:01:56 2006 +0000
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.
---
dlls/rpcrt4/rpc_transport.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index d50b60b..a90b73c 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -684,6 +684,8 @@ static RPC_STATUS rpcrt4_conn_tcp_handof
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;
More information about the wine-cvs
mailing list