Commit 349afd05 authored by Vincent Pelletier's avatar Vincent Pelletier

Simplify condition.

If EPOLLERR or EPOLLHUP is asserted, the event will be appended to
readable_fd_list, so it is useless to test their value in the second
test too.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1870 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent dd19dfe1
......@@ -97,7 +97,7 @@ class Epoll(object):
ev = self.events[i]
if ev.events & (EPOLLIN | EPOLLERR | EPOLLHUP):
readable_fd_list.append(int(ev.data.fd))
elif ev.events & (EPOLLOUT | EPOLLERR | EPOLLHUP):
elif ev.events & EPOLLOUT:
writable_fd_list.append(int(ev.data.fd))
return readable_fd_list, writable_fd_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment