From 875100e3c8da753f33951360f62f5b5559ebd64e Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Sun, 16 Oct 2011 09:58:37 +0200 Subject: [PATCH] check for mules before nuke --- uwsgi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/uwsgi.c b/uwsgi.c index 15c198cd..1435167c 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -656,6 +656,7 @@ void reap_them_all(int signum) { } for (i = 0; i < uwsgi.mules_cnt; i++) { + if (!uwsgi.mules) break; if (uwsgi.mules[i].pid > 0) kill(uwsgi.mules[i].pid, SIGKILL); }