From 27b86f1b7940e8ea0964cd2a9e915ca06180ba35 Mon Sep 17 00:00:00 2001 From: "roberto@goyle" Date: Tue, 21 Jun 2011 17:19:28 +0200 Subject: [PATCH] fixed a bug in dynamic touch reload --- utils.c | 1 - uwsgi.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 74908ac4..f448be3f 100644 --- a/utils.c +++ b/utils.c @@ -1247,7 +1247,6 @@ int uwsgi_get_app_id(char *script_name, int script_name_len, int modifier1) { if (st.st_mtime != uwsgi.apps[i].touch_reload_mtime) { // serve the new request and reload uwsgi.workers[uwsgi.mywid].manage_next_request = 0; - return -1; } } } diff --git a/uwsgi.c b/uwsgi.c index b2f2d128..658e281b 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -2545,6 +2545,7 @@ static int manage_base_opt(int i, char *optarg) { return 1; #ifdef UWSGI_THREADING case LONG_ARGS_THREADS: + uwsgi.has_threads = 1; uwsgi.threads = atoi(optarg); return 1; #endif