do not call atexit hooks in async mode

This commit is contained in:
roberto@precise64
2012-03-10 12:06:19 +01:00
parent 41464c3bfa
commit d7e8523fcf
+6
View File
@@ -240,6 +240,12 @@ void uwsgi_python_atexit() {
if (uwsgi.workers[uwsgi.mywid].busy)
return;
#ifdef UWSGI_ASYNC
// managing atexit in async mode is a real pain...skip it for now
if (uwsgi.async > 1)
return;
#endif
// this time we use this higher level function
// as this code can be executed in a signal handler