Skip to content
Snippets Groups Projects
Commit 69680e47 authored by Danny Auble's avatar Danny Auble
Browse files

CRAY - if job_attachpid fails for some reason fail job instead of continue.

parent 18985643
No related branches found
No related tags found
No related merge requests found
......@@ -194,8 +194,10 @@ extern int proctrack_p_plugin_create(stepd_step_rec_t *job)
* (once) at this time. */
int proctrack_p_plugin_add(stepd_step_rec_t *job, pid_t pid)
{
if (job_attachpid(pid, job->cont_id) == (jid_t) -1)
if (job_attachpid(pid, job->cont_id) == (jid_t) -1) {
error("Failed to attach pid %d to job container: %m", pid);
return SLURM_ERROR;
}
_end_container_thread();
......
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