fixed a bug in dynamic touch reload

This commit is contained in:
roberto@goyle
2011-06-21 17:19:28 +02:00
parent d69892c91e
commit 27b86f1b79
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -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;
}
}
}
+1
View File
@@ -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