From 5d6086c84aef3709c120505525d4c19ce62b04e2 Mon Sep 17 00:00:00 2001 From: Unbit Date: Sat, 23 Feb 2013 14:46:41 +0100 Subject: [PATCH] allows --attach-daemon without workers --- core/uwsgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/uwsgi.c b/core/uwsgi.c index 4199e56a..22d14af2 100644 --- a/core/uwsgi.c +++ b/core/uwsgi.c @@ -2338,9 +2338,9 @@ int uwsgi_start(void *v_argv) { #endif #ifdef UWSGI_UDP - if (!uwsgi.sockets && !ushared->gateways_cnt && !uwsgi.no_server && !uwsgi.udp_socket && !uwsgi.emperor && !uwsgi.command_mode) { + if (!uwsgi.sockets && !ushared->gateways_cnt && !uwsgi.no_server && !uwsgi.udp_socket && !uwsgi.emperor && !uwsgi.command_mode && !uwsgi.daemons_cnt) { #else - if (!uwsgi.sockets && !ushared->gateways_cnt && !uwsgi.no_server && !uwsgi.emperor && !uwsgi.command_mode) { + if (!uwsgi.sockets && !ushared->gateways_cnt && !uwsgi.no_server && !uwsgi.emperor && !uwsgi.command_mode && !uwsgi.daemons_cnt) { #endif uwsgi_log("The -s/--socket option is missing and stdin is not a socket.\n"); exit(1);