A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/a34aa086060071e024076cec05f1b24ec7834416 below:

[core] Set CLOEXEC for epoll on Linux · Haivision/srt@a34aa08 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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