diff --git a/core/master_checks.c b/core/master_checks.c index b3409e04..a0a808b6 100644 --- a/core/master_checks.c +++ b/core/master_checks.c @@ -118,6 +118,9 @@ void uwsgi_master_check_idle() { if (errno != ECHILD) uwsgi_error("uwsgi_master_check_idle()/waitpid()"); } + else { + uwsgi.workers[i].pid = 0; + } } uwsgi_add_sockets_to_queue(uwsgi.master_queue, -1); uwsgi_log("cheap mode enabled: waiting for socket connection...\n");