eloop: fix not disabling sources on EV_HUP
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 27 Nov 2012 18:00:57 +0000 (19:00 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 27 Nov 2012 18:00:57 +0000 (19:00 +0100)
We used to disable event sources on EV_HUP to avoid draining the
event-queue for non-edge-triggered sources. However, this turns out to be
not working with special files so we disable it again.

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

index dafb0b2..1258cc0 100644 (file)
@@ -836,9 +836,6 @@ int ev_eloop_dispatch(struct ev_eloop *loop, int timeout)
                                continue;
 
                        mask = convert_mask(ep[i].events);
-                       if ((mask & (EV_ERR | EV_HUP)) == mask)
-                               ev_fd_disable(fd);
-
                        fd->cb(fd, mask, fd->data);
                }
        }