Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
49ef87c3
Commit
49ef87c3
authored
Jun 12, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Jun 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Take care of EINTR on send/recv.
parent
ad4ccd18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
send.c
programs/winetest/send.c
+5
-1
No files found.
programs/winetest/send.c
View file @
49ef87c3
...
...
@@ -92,7 +92,10 @@ send_buf (SOCKET s, const char *buf, size_t length)
while
(
length
>
0
)
{
sent
=
send
(
s
,
buf
,
length
,
0
);
if
(
sent
==
SOCKET_ERROR
)
return
1
;
if
(
sent
==
SOCKET_ERROR
)
{
if
(
errno
==
EINTR
)
continue
;
return
1
;
}
buf
+=
sent
;
length
-=
sent
;
}
...
...
@@ -200,6 +203,7 @@ send_file_direct (const char *name)
total
=
0
;
while
((
bytes_read
=
recv
(
s
,
buffer
+
total
,
BUFLEN
-
total
,
0
)))
{
if
((
signed
)
bytes_read
==
SOCKET_ERROR
)
{
if
(
errno
==
EINTR
)
continue
;
report
(
R_WARNING
,
"Error receiving reply: %d, %d"
,
errno
,
WSAGetLastError
());
goto
abort1
;
...
...
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