mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 14:54:49 -04:00
Do not offer EV_FEATURE_EARLY_CLOSE if we have no EPOLLRDHUP
This commit is contained in:
parent
f24cba3bc0
commit
3908a5e3d0
5
epoll.c
5
epoll.c
@ -65,6 +65,9 @@
|
|||||||
*/
|
*/
|
||||||
#if !defined(EPOLLRDHUP)
|
#if !defined(EPOLLRDHUP)
|
||||||
#define EPOLLRDHUP 0
|
#define EPOLLRDHUP 0
|
||||||
|
#define EARLY_CLOSE_IF_HAVE_RDHUP 0
|
||||||
|
#else
|
||||||
|
#define EARLY_CLOSE_IF_HAVE_RDHUP EV_FEATURE_EARLY_CLOSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "epolltable-internal.h"
|
#include "epolltable-internal.h"
|
||||||
@ -101,7 +104,7 @@ static const struct eventop epollops_changelist = {
|
|||||||
epoll_dispatch,
|
epoll_dispatch,
|
||||||
epoll_dealloc,
|
epoll_dealloc,
|
||||||
1, /* need reinit */
|
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
|
EVENT_CHANGELIST_FDINFO_SIZE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user