fixed virtualhosting with dynamic virtualenv

This commit is contained in:
roberto@debian64
2011-04-12 10:34:36 +02:00
parent 2392eb7e0b
commit e503999392
4 changed files with 5 additions and 2 deletions
-1
View File
@@ -125,7 +125,6 @@ int init_uwsgi_app(int loader, void *arg1, struct wsgi_request *wsgi_req, PyThre
}
}
if (interpreter == NULL && id) {
wi->interpreter = Py_NewInterpreter();
if (!wi->interpreter) {
+1
View File
@@ -778,6 +778,7 @@ void uwsgi_python_init_apps() {
init_uwsgi_app(LOADER_EVAL, up.eval, uwsgi.wsgi_req, up.main_thread);
}
}
void uwsgi_python_enable_threads() {
-1
View File
@@ -293,7 +293,6 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) {
|| wsgi_req->file_len > 0
|| wsgi_req->paste_len > 0
) {
// a bit of magic: 1-1 = 0 / 0-1 = -1
// this part must be heavy locked in threaded modes
if (uwsgi.threads > 1) {
pthread_mutex_lock(&up.lock_pyloaders);