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

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);