]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
main: fix build without CAN_FORK_EARLY
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 30 Jan 2018 10:30:02 +0000 (11:30 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 30 Jan 2018 12:49:35 +0000 (13:49 +0100)
daemon/main.c

index 560aec2a7f0a1c571dde1de8c1d06c16dc6a66fe..d0bced44150cc3fc5f084321407557d71b8092ee 100644 (file)
@@ -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;
         }