Commit 387ab0e4 authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Add error control

parent 10a434a8
......@@ -182,7 +182,9 @@ void scheduler_write_dependencies(struct scheduler *s, int verbose) {
if (s->nodeID == 0) {
struct stat st = {0};
if (stat(dir_name, &st) == -1) {
mkdir(dir_name, 0700);
int test = mkdir(dir_name, 0700);
if (test != 0)
error("Failed to create the task dependencies directory");
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment