From 52c74e66334651600b8cdf40ea1dc7f6e5eddaa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 16 Jan 2016 14:48:43 +0100 Subject: [PATCH] Always use edge-triggered events. --- source/eventcore/epoll.d | 1 + 1 file changed, 1 insertion(+) diff --git a/source/eventcore/epoll.d b/source/eventcore/epoll.d index 05bf95c..acfc598 100644 --- a/source/eventcore/epoll.d +++ b/source/eventcore/epoll.d @@ -70,6 +70,7 @@ final class EpollEventDriver : PosixEventDriver { { //print("update %s %s", fd, mask); epoll_event ev; + ev.events |= EPOLLET; //ev.events = EPOLLONESHOT; if (mask & EventMask.read) ev.events |= EPOLLIN; if (mask & EventMask.write) ev.events |= EPOLLOUT;