From c94ed423cf2388480c4766c019b6853280ffcbbd Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Tue, 17 Feb 2009 18:35:24 +0100 Subject: Fix possible crash with kqueue. With kqueue, a fdev may be in two active kevents. --- evloop/evloop.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'evloop/evloop.h') diff --git a/evloop/evloop.h b/evloop/evloop.h index 44f8803..28b4572 100644 --- a/evloop/evloop.h +++ b/evloop/evloop.h @@ -19,7 +19,12 @@ struct fdev { void *arg; int fd; uint16_t flags; +#ifdef EVLOOP_EPOLL int16_t index; +#else + int16_t rdidx; + int16_t wridx; +#endif }; #elif defined(EVLOOP_POLL) -- cgit 1.4.1