Skip to content
Snippets Groups Projects
Commit eda1a446 authored by Moe Jette's avatar Moe Jette
Browse files

Save updated job completion log file name, even if open fails.

parent 67caa947
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,8 @@ int slurm_jobcomp_set_location ( char * location )
plugin_errno = EACCES;
return SLURM_ERROR;
}
xfree(log_name);
log_name = xstrdup(location);
slurm_mutex_lock( &file_lock );
if (job_comp_fd >= 0)
......@@ -118,11 +120,8 @@ int slurm_jobcomp_set_location ( char * location )
error("open %s: %m", location);
plugin_errno = errno;
rc = SLURM_ERROR;
} else {
} else
fchmod(job_comp_fd, 0644);
xfree(log_name);
log_name = xstrdup(location);
}
slurm_mutex_unlock( &file_lock );
return rc;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment