We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f24cba3 commit 3908a5eCopy full SHA for 3908a5e
epoll.c
@@ -65,6 +65,9 @@
65
*/
66
#if !defined(EPOLLRDHUP)
67
#define EPOLLRDHUP 0
68
+#define EARLY_CLOSE_IF_HAVE_RDHUP 0
69
+#else
70
+#define EARLY_CLOSE_IF_HAVE_RDHUP EV_FEATURE_EARLY_CLOSE
71
#endif
72
73
#include "epolltable-internal.h"
@@ -101,7 +104,7 @@ static const struct eventop epollops_changelist = {
101
104
epoll_dispatch,
102
105
epoll_dealloc,
103
106
1, /* need reinit */
- EV_FEATURE_ET|EV_FEATURE_O1|EV_FEATURE_EARLY_CLOSE,
107
+ EV_FEATURE_ET|EV_FEATURE_O1| EARLY_CLOSE_IF_HAVE_RDHUP,
108
EVENT_CHANGELIST_FDINFO_SIZE
109
};
110
0 commit comments