From 361b013da5e069a7db544b28ee3a7611173f937c Mon Sep 17 00:00:00 2001 From: jakob Date: Sat, 13 Jun 2015 19:32:34 +0200 Subject: [PATCH] O_CLOEXEC does not exist in Debian 6, and apparently EPOLL_CLOEXEC is the correct to use anyway. --- uev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uev.c b/uev.c index fa7c8e6..fe5cfae 100644 --- a/uev.c +++ b/uev.c @@ -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;