fix uwsgi.atexit when threading mode is enabled

This commit is contained in:
roberto@oneiric64
2012-01-18 05:01:22 +01:00
parent 7a95c726cd
commit 4e21fe6607
+3
View File
@@ -197,6 +197,9 @@ void uwsgi_python_reset_random_seed() {
void uwsgi_python_atexit() {
// this time we use this higher level function
// as this code can be executed in a signal handler
PyGILState_Ensure();
// no need to worry about freeing memory
PyObject *uwsgi_dict = get_uwsgi_pydict("uwsgi");
if (uwsgi_dict) {