fixed threading in command mode

This commit is contained in:
roberto@oneiric64
2012-02-08 11:54:15 +01:00
parent 57c00c9b12
commit 06ca891d94
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -1434,6 +1434,7 @@ void uwsgi_python_hijack(void) {
FILE *pyfile;
if (up.pyrun) {
uwsgi.workers[uwsgi.mywid].hijacked = 1;
UWSGI_GET_GIL;
pyfile = fopen(up.pyrun, "r");
if (!pyfile) {
uwsgi_error_open(up.pyrun);
-2
View File
@@ -2217,7 +2217,6 @@ skipzero:
#ifdef UWSGI_THREADING
if (uwsgi.sockets || uwsgi.gateways_cnt) {
if (uwsgi.has_threads) {
if (uwsgi.threads > 1)
uwsgi.current_wsgi_req = threaded_current_wsgi_req;
@@ -2238,7 +2237,6 @@ skipzero:
uwsgi.p[i]->enable_threads();
}
}
}
#endif
if (!uwsgi.sockets && !uwsgi.gateways_cnt && !uwsgi.no_server && !uwsgi.udp_socket && !uwsgi.emperor_dir && !uwsgi.command_mode) {