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
a2db8e48
Commit
a2db8e48
authored
Jul 09, 2012
by
Salvatore Sanfilippo
Browse files
Merge pull request #569 from jokea/unstable
mark fd as writable when EPOLLERR or EPOLLHUP is returned by epoll_wait.
parents
36def8fd
93b0075d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae_epoll.c
View file @
a2db8e48
...
@@ -89,6 +89,8 @@ static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) {
...
@@ -89,6 +89,8 @@ static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) {
if
(
e
->
events
&
EPOLLIN
)
mask
|=
AE_READABLE
;
if
(
e
->
events
&
EPOLLIN
)
mask
|=
AE_READABLE
;
if
(
e
->
events
&
EPOLLOUT
)
mask
|=
AE_WRITABLE
;
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
].
fd
=
e
->
data
.
fd
;
eventLoop
->
fired
[
j
].
mask
=
mask
;
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