Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
93b0075d
Commit
93b0075d
authored
Jun 29, 2012
by
jokea
Browse files
mark fd as writable when EPOLLERR or EPOLLHUP is returned by epoll_wait.
parent
36def8fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae_epoll.c
View file @
93b0075d
...
...
@@ -89,6 +89,8 @@ static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) {
if
(
e
->
events
&
EPOLLIN
)
mask
|=
AE_READABLE
;
if
(
e
->
events
&
EPOLLOUT
)
mask
|=
AE_WRITABLE
;
if
(
e
->
events
&
EPOLLERR
)
mask
|=
AE_WRITABLE
;
if
(
e
->
events
&
EPOLLHUP
)
mask
|=
AE_WRITABLE
;
eventLoop
->
fired
[
j
].
fd
=
e
->
data
.
fd
;
eventLoop
->
fired
[
j
].
mask
=
mask
;
}
...
...
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