From d57084559212188c9c1f99c18e37beb06f1e5efe Mon Sep 17 00:00:00 2001 From: "roberto@oneiric64" Date: Tue, 24 Jan 2012 21:13:24 +0100 Subject: [PATCH] fixed sigquit/sigint in hijacked mode --- plugins/python/python_plugin.c | 2 ++ 1 file changed, 2 insertions(+) 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