Skip to content

Commit

Permalink
Update judge_client.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Nov 21, 2016
1 parent e0ea60d commit 38ccdaa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions trunk/core/judge_client/judge_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1990,8 +1990,7 @@ void clean_workdir(char * work_dir) {
if (DEBUG) {
execute_cmd("/bin/mv %s/* %slog/", work_dir, work_dir);
} else {
execute_cmd("/bin/rm -rf %s/*", work_dir);

execute_cmd("/bin/rm -f %s/*", work_dir);
}

}
Expand Down Expand Up @@ -2317,7 +2316,7 @@ int main(int argc, char** argv) {
addcustomout(solution_id);
}
update_solution(solution_id, OJ_TR, usedtime, topmemory >> 10, 0, 0, 0);

clean_workdir(work_dir);
exit(0);
}

Expand Down

0 comments on commit 38ccdaa

Please sign in to comment.