Bruno Jesus : rpcrt4: Take care of EINTR on send/recv.
Alexandre Julliard
julliard at winehq.org
Thu Jun 12 15:51:42 CDT 2014
Module: wine
Branch: master
Commit: d4278ce0ed61160fa8941ae825668cfe7a1be503
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d4278ce0ed61160fa8941ae825668cfe7a1be503
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Thu Jun 12 01:52:28 2014 -0300
rpcrt4: Take care of EINTR on send/recv.
---
dlls/rpcrt4/rpc_transport.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index c073a95..b283301 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <string.h>
#include <assert.h>
+#include <errno.h>
#include <stdlib.h>
#include <sys/types.h>
@@ -1464,6 +1465,8 @@ static int rpcrt4_conn_tcp_read(RpcConnection *Connection,
return -1;
else if (r > 0)
bytes_read += r;
+ else if (errno == EINTR)
+ continue;
else if (errno != EAGAIN)
{
WARN("recv() failed: %s\n", strerror(errno));
@@ -1489,6 +1492,8 @@ static int rpcrt4_conn_tcp_write(RpcConnection *Connection,
int r = send(tcpc->sock, (const char *)buffer + bytes_written, count - bytes_written, 0);
if (r >= 0)
bytes_written += r;
+ else if (errno == EINTR)
+ continue;
else if (errno != EAGAIN)
return -1;
else
More information about the wine-cvs
mailing list