Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aleksandr Isakov
wine-fonts
Commits
d4278ce0
Commit
d4278ce0
authored
Jun 12, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Jun 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Take care of EINTR on send/recv.
parent
49ef87c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+5
-0
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
d4278ce0
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <assert.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/types.h>
...
@@ -1464,6 +1465,8 @@ static int rpcrt4_conn_tcp_read(RpcConnection *Connection,
...
@@ -1464,6 +1465,8 @@ static int rpcrt4_conn_tcp_read(RpcConnection *Connection,
return
-
1
;
return
-
1
;
else
if
(
r
>
0
)
else
if
(
r
>
0
)
bytes_read
+=
r
;
bytes_read
+=
r
;
else
if
(
errno
==
EINTR
)
continue
;
else
if
(
errno
!=
EAGAIN
)
else
if
(
errno
!=
EAGAIN
)
{
{
WARN
(
"recv() failed: %s
\n
"
,
strerror
(
errno
));
WARN
(
"recv() failed: %s
\n
"
,
strerror
(
errno
));
...
@@ -1489,6 +1492,8 @@ static int rpcrt4_conn_tcp_write(RpcConnection *Connection,
...
@@ -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
);
int
r
=
send
(
tcpc
->
sock
,
(
const
char
*
)
buffer
+
bytes_written
,
count
-
bytes_written
,
0
);
if
(
r
>=
0
)
if
(
r
>=
0
)
bytes_written
+=
r
;
bytes_written
+=
r
;
else
if
(
errno
==
EINTR
)
continue
;
else
if
(
errno
!=
EAGAIN
)
else
if
(
errno
!=
EAGAIN
)
return
-
1
;
return
-
1
;
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment