From 8ea8a33d0cc3ebe2f321a855317e805f8591c426 Mon Sep 17 00:00:00 2001 From: multisnow Date: Mon, 21 Sep 2015 00:56:06 +0800 Subject: [PATCH] also remove all master fifo if vacuum is true --- core/uwsgi.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/uwsgi.c b/core/uwsgi.c index 21e65937..e91cf42d 100755 --- a/core/uwsgi.c +++ b/core/uwsgi.c @@ -1695,6 +1695,18 @@ next: } } } + if (uwsgi.master_fifo) { + // also remove all master fifo + struct uwsgi_string_list *usl; + uwsgi_foreach(usl, uwsgi.master_fifo) { + if (unlink(usl->value)) { + uwsgi_error("unlink()"); + } + else { + uwsgi_log("VACUUM: master fifo %s removed.\n", usl->value); + } + } + } } } }