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
b1aad5d8
Commit
b1aad5d8
authored
Feb 25, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regular files are always ready for I/O, no need to poll on them.
parent
81b6a1fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
fd.c
server/fd.c
+6
-2
No files found.
server/fd.c
View file @
b1aad5d8
...
...
@@ -1347,9 +1347,13 @@ void default_fd_remove_queue( struct object *obj, struct wait_queue_entry *entry
/* default signaled() routine for objects that poll() on an fd */
int
default_fd_signaled
(
struct
object
*
obj
,
struct
thread
*
thread
)
{
int
events
,
ret
;
struct
fd
*
fd
=
get_obj_fd
(
obj
);
int
events
=
fd
->
fd_ops
->
get_poll_events
(
fd
);
int
ret
=
check_fd_events
(
fd
,
events
)
!=
0
;
if
(
fd
->
inode
)
return
1
;
/* regular files are always signaled */
events
=
fd
->
fd_ops
->
get_poll_events
(
fd
);
ret
=
check_fd_events
(
fd
,
events
)
!=
0
;
if
(
ret
)
set_fd_events
(
fd
,
0
);
/* stop waiting on select() if we are signaled */
...
...
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