X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=server.cpp;fp=server.cpp;h=a6f45744e1576b03065c712767bf4cea5078eb45;hp=35cb9d6bce869b354f73b96f1824e004cf1835ec;hb=6d34c5b6d8e5bec5d1421eadc103f38d206f34f1;hpb=d34b94a858c08d64eddfb9c115719fd9129be933 diff --git a/server.cpp b/server.cpp index 35cb9d6..a6f4574 100644 --- a/server.cpp +++ b/server.cpp @@ -60,7 +60,7 @@ inline bool is_earlier(timespec a, timespec b) Server::Server() { - epoll_fd = epoll_create(1024); // Size argument is ignored. + epoll_fd = epoll_create1(EPOLL_CLOEXEC); if (epoll_fd == -1) { log_perror("epoll_fd"); exit(1);