From f71ab9cbfa8c31412724df33597659766cd9f500 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 1 Jun 2016 12:45:06 +0200 Subject: [PATCH] mxqd: unlink bad (left over) fspool files, so we don't try them over and over --- mxqd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mxqd.c b/mxqd.c index 51b3ac21..1c7b6e78 100644 --- a/mxqd.c +++ b/mxqd.c @@ -1864,6 +1864,7 @@ static int fspool_process_file(struct mxq_server *server,char *filename, uint64_ jlist = server_remove_job_list_by_job_id(server, job_id); if (!jlist) { mx_log_warning("fspool_process_file: %s : job unknown on server", filename); + unlink(filename); return -(errno=ENOENT); } @@ -1873,6 +1874,7 @@ static int fspool_process_file(struct mxq_server *server,char *filename, uint64_ filename, job->job_id, job_id); + unlink(filename); return -(errno=EINVAL); }