From 45d6ddd1ff25566523597dd45bbb0d0ad85f2525 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 30 Jan 2018 11:30:02 +0100 Subject: [PATCH] main: fix build without CAN_FORK_EARLY --- daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2