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
13fb500c
Commit
13fb500c
authored
Aug 09, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Aug 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use check_fd_events() instead of calling poll() directly.
parent
78f1dd89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
sock.c
server/sock.c
+2
-10
No files found.
server/sock.c
View file @
13fb500c
...
...
@@ -3468,11 +3468,7 @@ DECL_HANDLER(recv_socket)
* asyncs will not consume all available data; if there's no data
* available, the current request won't be immediately satiable.
*/
struct
pollfd
pollfd
;
pollfd
.
fd
=
get_unix_fd
(
sock
->
fd
);
pollfd
.
events
=
req
->
oob
&&
!
is_oobinline
(
sock
)
?
POLLPRI
:
POLLIN
;
pollfd
.
revents
=
0
;
if
(
poll
(
&
pollfd
,
1
,
0
)
>=
0
&&
pollfd
.
revents
)
if
(
check_fd_events
(
sock
->
fd
,
req
->
oob
&&
!
is_oobinline
(
sock
)
?
POLLPRI
:
POLLIN
))
{
/* Give the client opportunity to complete synchronously.
* If it turns out that the I/O request is not actually immediately satiable,
...
...
@@ -3568,11 +3564,7 @@ DECL_HANDLER(send_socket)
* asyncs will not consume all available space; if there's no space
* available, the current request won't be immediately satiable.
*/
struct
pollfd
pollfd
;
pollfd
.
fd
=
get_unix_fd
(
sock
->
fd
);
pollfd
.
events
=
POLLOUT
;
pollfd
.
revents
=
0
;
if
(
poll
(
&
pollfd
,
1
,
0
)
>=
0
&&
pollfd
.
revents
)
if
(
check_fd_events
(
sock
->
fd
,
POLLOUT
))
{
/* Give the client opportunity to complete synchronously.
* If it turns out that the I/O request is not actually immediately satiable,
...
...
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