fixed signal handling in non-workers

This commit is contained in:
Unbit
2013-03-29 12:50:56 +01:00
parent 0791394f1a
commit eeff935fc9
5 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ void uwsgi_python_reset_random_seed() {
void uwsgi_python_atexit() {
if (uwsgi.mywid == -1) goto realstuff;
if (uwsgi.mywid == 0) goto realstuff;
// if hijacked do not run atexit hooks
if (uwsgi.workers[uwsgi.mywid].hijacked)