Skip to content

Commit

Permalink
Do not offer EV_FEATURE_EARLY_CLOSE if we have no EPOLLRDHUP
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Feb 24, 2014
1 parent f24cba3 commit 3908a5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
*/
#if !defined(EPOLLRDHUP)
#define EPOLLRDHUP 0
#define EARLY_CLOSE_IF_HAVE_RDHUP 0
#else
#define EARLY_CLOSE_IF_HAVE_RDHUP EV_FEATURE_EARLY_CLOSE
#endif

#include "epolltable-internal.h"
Expand Down Expand Up @@ -101,7 +104,7 @@ static const struct eventop epollops_changelist = {
epoll_dispatch,
epoll_dealloc,
1, /* need reinit */
EV_FEATURE_ET|EV_FEATURE_O1|EV_FEATURE_EARLY_CLOSE,
EV_FEATURE_ET|EV_FEATURE_O1| EARLY_CLOSE_IF_HAVE_RDHUP,
EVENT_CHANGELIST_FDINFO_SIZE
};

Expand Down

0 comments on commit 3908a5e

Please sign in to comment.