kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 2f670ce777481ed53051d70dd4900fcd4c150215
parent fc6b3bf7405fd37f7ea0337b11b0bb9ea50e90a1
Author: Joris Vink <joris@coders.se>
Date:   Wed, 22 Feb 2017 17:52:38 +0100

don't log failure if unlinking fails with ENOENT

Diffstat:
src/http.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/http.c b/src/http.c @@ -537,7 +537,7 @@ http_request_free(struct http_request *req) (void)close(req->http_body_fd); if (req->http_body_path != NULL) { - if (unlink(req->http_body_path) == -1) { + if (unlink(req->http_body_path) == -1 && errno != ENOENT) { kore_log(LOG_NOTICE, "failed to unlink %s: %s", req->http_body_path, errno_s); }