+5
-1
lines changedFilter options
+5
-1
lines changed Original file line number Diff line number Diff line change
@@ -108,7 +108,11 @@ int CEPoll::create(CEPollDesc** pout)
108
108
int localid = 0;
109
109
110
110
#ifdef LINUX
111
-
localid = epoll_create(1024);
111
+
int flags = 0;
112
+
#if ENABLE_SOCK_CLOEXEC
113
+
flags |= EPOLL_CLOEXEC;
114
+
#endif
115
+
localid = epoll_create1(flags);
112
116
/* Possible reasons of -1 error:
113
117
EMFILE: The per-user limit on the number of epoll instances imposed by /proc/sys/fs/epoll/max_user_instances was encountered.
114
118
ENFILE: The system limit on the total number of open files has been reached.
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4