Skip to content

Commit

Permalink
mxqd: Remove fspool_unlink()
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Nov 3, 2015
1 parent a28a7c7 commit 1cf685b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1696,12 +1696,6 @@ static char *fspool_get_filename (struct mxq_server *server,long unsigned int jo
return fspool_filename;
}

void fspool_unlink(struct mxq_server *server,int job_id) {
char *fspool_filename=fspool_get_filename(server,job_id);
unlink(fspool_filename);
free(fspool_filename);
}

static int fspool_process_file(struct mxq_server *server,char *filename,int job_id) {
FILE *in;
int res;
Expand Down Expand Up @@ -1777,7 +1771,7 @@ static int fspool_process_file(struct mxq_server *server,char *filename,int job_
job->stats_rusage = rusage;

job_has_finished(server, group, jlist);
fspool_unlink(server,job_id);
unlink(filename);
return(0);
}

Expand Down Expand Up @@ -2043,8 +2037,6 @@ int catchall(struct mxq_server *server)
pid,
status);

fspool_unlink(server, job->job_id);

cnt += job_has_finished(server, group, jlist);
}

Expand Down

0 comments on commit 1cf685b

Please sign in to comment.