From a94a8ea2872aa828eafea43036d9a3ebd51633f5 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Fri, 5 Aug 2011 06:53:43 +0200 Subject: [PATCH] added a check on spooler unlink --- spooler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spooler.c b/spooler.c index aa696b42..65bb62ff 100644 --- a/spooler.c +++ b/spooler.c @@ -195,7 +195,9 @@ int spool_request(char *filename, int rn, int core_id, char *buffer, int size, c clear: uwsgi_unlock(uwsgi.spooler_lock); uwsgi_error("write()"); - unlink(filename); + if (unlink(filename)) { + uwsgi_error("unlink()"); + } close(fd); return 0; }