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
731339cd
Commit
731339cd
authored
Mar 18, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use default_fd_signaled() for sockets.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe9e2f07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
sock.c
server/sock.c
+1
-14
No files found.
server/sock.c
View file @
731339cd
...
...
@@ -163,7 +163,6 @@ struct sock
};
static
void
sock_dump
(
struct
object
*
obj
,
int
verbose
);
static
int
sock_signaled
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
);
static
struct
fd
*
sock_get_fd
(
struct
object
*
obj
);
static
int
sock_close_handle
(
struct
object
*
obj
,
struct
process
*
process
,
obj_handle_t
handle
);
static
void
sock_destroy
(
struct
object
*
obj
);
...
...
@@ -189,7 +188,7 @@ static const struct object_ops sock_ops =
sock_dump
,
/* dump */
add_queue
,
/* add_queue */
remove_queue
,
/* remove_queue */
sock_signaled
,
/* signaled */
default_fd_signaled
,
/* signaled */
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
sock_get_fd
,
/* get_fd */
...
...
@@ -773,10 +772,6 @@ static void sock_poll_event( struct fd *fd, int event )
event
=
sock_dispatch_asyncs
(
sock
,
event
,
error
);
sock_dispatch_events
(
sock
,
prevstate
,
event
,
error
);
/* if anyone is stupid enough to wait on the socket object itself,
* maybe we should wake them up too, just in case? */
wake_up
(
&
sock
->
obj
,
0
);
sock_reselect
(
sock
);
}
...
...
@@ -789,14 +784,6 @@ static void sock_dump( struct object *obj, int verbose )
sock
->
mask
,
sock
->
pmask
,
sock
->
hmask
);
}
static
int
sock_signaled
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
)
{
struct
sock
*
sock
=
(
struct
sock
*
)
obj
;
assert
(
obj
->
ops
==
&
sock_ops
);
return
check_fd_events
(
sock
->
fd
,
sock_get_poll_events
(
sock
->
fd
)
)
!=
0
;
}
static
int
sock_get_poll_events
(
struct
fd
*
fd
)
{
struct
sock
*
sock
=
get_fd_user
(
fd
);
...
...
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