eloop: fix leaving dead FDs pollable
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 7 Oct 2012 11:09:27 +0000 (13:09 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 7 Oct 2012 11:09:27 +0000 (13:09 +0200)
commit70bfc314e013b169d16e62cac671acf58f147dc7
treee67f9e0a1066833dfc49a7de290e47c3c590a5f5
parent0996ed38a06016e23fbc2f86fc08290cf5b829e3
eloop: fix leaving dead FDs pollable

We used to remove dead FDs from the epoll-loop, but we should do this only
if they are no longer readable. An FD might be dead/HUP but still
readable.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/eloop.c