summaryrefslogtreecommitdiffstats
path: root/src/privsep.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2021-01-28 17:26:20 +0000
committerRoy Marples <roy@marples.name>2021-01-28 17:26:20 +0000
commit701a9d031e0f97d7024639a9fbeaa35afb1bbb83 (patch)
tree197e6e249f3d9cfee771fddecf807e1f0b71a827 /src/privsep.c
parent07af15970a386e49db4b4e5c443e702fbca2f275 (diff)
downloaddhcpcd-701a9d031e0f97d7024639a9fbeaa35afb1bbb83.tar.xz
Linux: Implement epoll(7) for eloop (again)
eloop allows for O(1) processing of active fd's. The problems with the prior implementation have now been fixed.
Diffstat (limited to 'src/privsep.c')
-rw-r--r--src/privsep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/privsep.c b/src/privsep.c
index 60ef649a..077c0b49 100644
--- a/src/privsep.c
+++ b/src/privsep.c
@@ -138,7 +138,7 @@ ps_dropprivs(struct dhcpcd_ctx *ctx)
if (ctx->ps_control_pid != getpid()) {
/* Prohibit new files, sockets, etc */
#if (defined(__linux__) || defined(__sun) || defined(__OpenBSD__)) && \
- !defined(HAVE_KQUEUE)
+ !defined(HAVE_KQUEUE) && !defined(HAVE_EPOLL)
/*
* If poll(2) is called with nfds > RLIMIT_NOFILE
* then it returns EINVAL.