Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0d2817b1
Commit
0d2817b1
authored
Apr 30, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
May 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Properly handle closing sockets during a select call.
Based on a patch by Bruno Jesus.
parent
a2484183
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
socket.c
dlls/ws2_32/socket.c
+12
-1
sock.c
dlls/ws2_32/tests/sock.c
+0
-1
No files found.
dlls/ws2_32/socket.c
View file @
0d2817b1
...
...
@@ -4773,7 +4773,18 @@ static void release_poll_fds( const WS_fd_set *readfds, const WS_fd_set *writefd
if
(
exceptfds
)
{
for
(
i
=
0
;
i
<
exceptfds
->
fd_count
;
i
++
,
j
++
)
if
(
fds
[
j
].
fd
!=
-
1
)
release_sock_fd
(
exceptfds
->
fd_array
[
i
],
fds
[
j
].
fd
);
{
if
(
fds
[
j
].
fd
==
-
1
)
continue
;
release_sock_fd
(
exceptfds
->
fd_array
[
i
],
fds
[
j
].
fd
);
if
(
fds
[
j
].
revents
&
POLLHUP
)
{
int
fd
=
get_sock_fd
(
exceptfds
->
fd_array
[
i
],
0
,
NULL
);
if
(
fd
!=
-
1
)
release_sock_fd
(
exceptfds
->
fd_array
[
i
],
fd
);
else
fds
[
j
].
revents
=
0
;
}
}
}
}
...
...
dlls/ws2_32/tests/sock.c
View file @
0d2817b1
...
...
@@ -3834,7 +3834,6 @@ todo_wine
FD_ZERO_ALL
();
FD_SET_ALL
(
fdWrite
);
ret
=
select
(
0
,
&
readfds
,
NULL
,
&
exceptfds
,
&
select_timeout
);
todo_wine
ok
(
ret
==
1
,
"expected 1, got %d
\n
"
,
ret
);
ok
(
FD_ISSET
(
fdWrite
,
&
readfds
),
"fdWrite socket is not in the set
\n
"
);
WaitForSingleObject
(
thread_handle
,
1000
);
...
...
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