From dd344bfe38b4eb0961cb8e7c0b698a85b73dc624 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Sun, 4 Sep 2011 18:01:04 +0200 Subject: [PATCH] fixed a bug in multiapp mode --- master_utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/master_utils.c b/master_utils.c index 4e62f9db..4ec6d045 100644 --- a/master_utils.c +++ b/master_utils.c @@ -60,6 +60,9 @@ int uwsgi_respawn_worker(int wid) { uwsgi.workers[uwsgi.mywid].last_spawn = uwsgi.current_time; uwsgi.workers[uwsgi.mywid].manage_next_request = 1; + // reset the apps count + uwsgi.workers[uwsgi.mywid].apps_cnt = 0; + // close the cache server if (uwsgi.cache_server_fd != -1) { close(uwsgi.cache_server_fd);