O_CLOEXEC does not exist in Debian 6, and apparently EPOLL_CLOEXEC is the correct to use anyway.

This commit is contained in:
jakob committed 2015-06-13 19:32:34 +02:00
1 parent 052b08e0b5
commit 361b013da5
1 file changed
+1 -1
+1 -1
View File
@@ -37,7 +37,7 @@
static int _init(uev_ctx_t *ctx, int close_old)
{
int fd = epoll_create1(O_CLOEXEC);
int fd = epoll_create1(EPOLL_CLOEXEC);
if (fd < 0)
return -1;