diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index b3176c7a..45ba8a20 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -193,6 +193,8 @@ void uwsgi_python_reset_random_seed() { void uwsgi_python_atexit() { // if hijacked do not run atexit hooks + if (uwsgi.workers[uwsgi.mywid].hijacked) + return; // this time we use this higher level function // as this code can be executed in a signal handler