From: Vladimír Čunát Date: Tue, 30 Jan 2018 10:30:02 +0000 (+0100) Subject: main: fix build without CAN_FORK_EARLY X-Git-Tag: v2.0.0~7^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45d6ddd1ff25566523597dd45bbb0d0ad85f2525;p=thirdparty%2Fknot-resolver.git main: fix build without CAN_FORK_EARLY --- diff --git a/daemon/main.c b/daemon/main.c index 560aec2a7..d0bced441 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -651,7 +651,7 @@ int main(int argc, char **argv) * sockets etc. before forking, but at the same time can't touch it before * forking otherwise it crashes, so it's a chicken and egg problem. * Disabling until https://github.com/libuv/libuv/pull/846 is done. */ - if (forks > 1 && fd_set.len == 0 && tls_fd_set.len == 0) { + if (args.forks > 1 && args.fd_set.len == 0 && args.tls_fd_set.len == 0) { kr_log_error("[system] forking >1 workers supported only on Linux 3.9+ or with supervisor\n"); return EXIT_FAILURE; }