Skip to content
Snippets Groups Projects
Commit fe8462a3 authored by Carlos Tripiana Montes's avatar Carlos Tripiana Montes Committed by Danny Auble
Browse files

job_container/tmpfs: close step_ns_fd before umounting

We shouldn't umount the NSs until the step FD is closed.

In preparation for next commit as well.

Bug 11093
parent a3557b4c
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,10 @@ extern int fini(void)
error("%s: Configuration not loaded", __func__);
return SLURM_ERROR;
}
if (step_ns_fd != -1) {
close(step_ns_fd);
step_ns_fd = -1;
}
if (umount2(jc_conf->basepath, MNT_DETACH)) {
error("%s: umount2: %s failed: %s",
__func__, jc_conf->basepath, strerror(errno));
......@@ -171,11 +175,6 @@ extern int fini(void)
}
free_jc_conf();
if (step_ns_fd != -1) {
close(step_ns_fd);
step_ns_fd = -1;
}
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