From ca832900a036fd6f185e74fc8bcc370ff308400f Mon Sep 17 00:00:00 2001 From: "roberto@quantal64" Date: Thu, 13 Sep 2012 16:58:05 +0200 Subject: [PATCH] ensure master_cleanup is run by the master --- core/master_utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/master_utils.c b/core/master_utils.c index da155f99..5eece040 100644 --- a/core/master_utils.c +++ b/core/master_utils.c @@ -8,6 +8,9 @@ void worker_wakeup() { void uwsgi_master_cleanup_hooks(void) { int j; + + // could be an inherited atexit hook + if (uwsgi.mywid > 0) return ; uwsgi.cleaning = 1;