]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Ensure kqueue/epoll fd is open on init.
authorRoy Marples <roy@marples.name>
Wed, 13 May 2015 00:53:45 +0000 (00:53 +0000)
committerRoy Marples <roy@marples.name>
Wed, 13 May 2015 00:53:45 +0000 (00:53 +0000)
eloop.c

diff --git a/eloop.c b/eloop.c
index dc2a681f6d1f38bbb6ae0c52165382da781343e6..091f3b8a32af352e518550ed834d4faba2c16e1f 100644 (file)
--- a/eloop.c
+++ b/eloop.c
@@ -614,6 +614,7 @@ eloop_new(void)
                eloop->exitcode = EXIT_FAILURE;
 #if defined(HAVE_KQUEUE) || defined(HAVE_EPOLL)
                eloop->poll_fd = -1;
+               eloop_open(eloop);
 #endif
        }