Module: wine Branch: master Commit: 828c733f72cd45f6b356d741336afbafb3da71eb URL: http://source.winehq.org/git/wine.git/?a=commit;h=828c733f72cd45f6b356d74133...
Author: Rob Shearman rob@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;