always get gil on python atexit

This commit is contained in:
Roberto De Ioris
2012-10-18 08:27:51 +02:00
parent 1d691139c7
commit 86d9b4bc0e
+3 -2
View File
@@ -302,8 +302,9 @@ realstuff:
return;
}
if (uwsgi.has_threads)
PyGILState_Ensure();
// always call it
PyGILState_Ensure();
// no need to worry about freeing memory
#ifdef UWSGI_EMBEDDED
PyObject *uwsgi_dict = get_uwsgi_pydict("uwsgi");