Skip to content

Commit

Permalink
do not call atexit hooks in async mode
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto@precise64 committed Mar 10, 2012
1 parent 41464c3 commit d7e8523
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/python/python_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d7e8523

Please sign in to comment.