ensure master_cleanup is run by the master

This commit is contained in:
roberto@quantal64
2012-09-13 16:58:05 +02:00
parent 6a6227a8e7
commit ca832900a0
+3
View File
@@ -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;