dispatch: don't allow EPOLLET to be passed in
The dispatcher is hardcoded to always enable edge triggered mode
internally, so it makes no sense to pass it in. Make this clear
by asserting when it is passed in.
@@ -20,6 +20,8 @@ int dispatch_file_init(DispatchFile *file,
uint32_t mask) {
int r;
+ assert(!(mask & EPOLLET));
+
r = epoll_ctl(ctx->epoll_fd,
EPOLL_CTL_ADD,
fd,
