mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Check for the presence of EPOLLRDHUP in the nsock epoll(7)-based engine as this
flag isn't available on every epoll-compatible systems.
This commit is contained in:
parent
ed2fc828ac
commit
659ed2ac89
1 changed files with 6 additions and 1 deletions
|
|
@ -73,7 +73,12 @@
|
|||
|
||||
#define EPOLL_R_FLAGS (EPOLLIN | EPOLLPRI)
|
||||
#define EPOLL_W_FLAGS EPOLLOUT
|
||||
#define EPOLL_X_FLAGS (EPOLLERR | EPOLLRDHUP | EPOLLHUP)
|
||||
#ifdef EPOLLRDHUP
|
||||
#define EPOLL_X_FLAGS (EPOLLERR | EPOLLRDHUP| EPOLLHUP)
|
||||
#else
|
||||
/* EPOLLRDHUP was introduced later and might be unavailable on older systems. */
|
||||
#define EPOLL_X_FLAGS (EPOLLERR | EPOLLHUP)
|
||||
#endif /* EPOLLRDHUP */
|
||||
|
||||
|
||||
/* --- ENGINE INTERFACE PROTOTYPES --- */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue