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
95bf36fc
Commit
95bf36fc
authored
Jun 29, 2012
by
jokea
Committed by
antirez
Jul 09, 2012
Browse files
mark fd as writable when EPOLLERR or EPOLLHUP is returned by epoll_wait.
parent
0332a321
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae_epoll.c
View file @
95bf36fc
...
@@ -79,6 +79,8 @@ static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) {
...
@@ -79,6 +79,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