Commit 2f7a8df7 authored by Alex Hultman's avatar Alex Hultman

Set EPOLL_CLOEXEC

parent 0ed56490
......@@ -37,7 +37,7 @@ struct Loop {
std::vector<std::pair<Poll *, void (*)(Poll *)>> closing;
Loop(bool defaultLoop) {
epfd = epoll_create(1);
epfd = epoll_create1(EPOLL_CLOEXEC);
timepoint = std::chrono::system_clock::now();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment