From 1b7f6aa29db0e4b01beeca3976226a76b4482355 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 14 Nov 2020 16:07:36 +0000 Subject: [PATCH] removed O_CLOEXEC checks with epoll_create1() --- hawk/lib/mod-sys.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hawk/lib/mod-sys.c b/hawk/lib/mod-sys.c index 3efae9ad..e4e2ae71 100644 --- a/hawk/lib/mod-sys.c +++ b/hawk/lib/mod-sys.c @@ -3626,14 +3626,12 @@ static int fnc_openmux (hawk_rtx_t* rtx, const hawk_fnc_info_t* fi) #if defined(USE_EPOLL) #if defined(HAVE_EPOLL_CREATE1) && defined(EPOLL_CLOEXEC) fd = epoll_create1(EPOLL_CLOEXEC); - #elif defined(HAVE_EPOLL_CREATE1) && defined(O_CLOEXEC) - fd = epoll_create1(O_CLOEXEC); #else fd = epoll_create(4096); #endif if (fd >= 0) { - #if defined(HAVE_EPOLL_CREATE1) && defined(O_CLOEXEC) + #if defined(HAVE_EPOLL_CREATE1) && defined(EPOLL_CLOEXEC) /* nothing to do */ #elif defined(FD_CLOEXEC) {