Skip to content
Snippets Groups Projects
Commit 61cbb2a8 authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Check the return code of io_initial_client_connect immediately

parent 55fd3be7
No related branches found
No related tags found
No related merge requests found
......@@ -455,6 +455,8 @@ _setup_io(slurmd_job_t *job)
srun_info_t *srun = list_peek(job->sruns);
xassert(srun != NULL);
rc = io_initial_client_connect(srun, job);
if (rc < 0)
return ESLURMD_IO_ERROR;
}
if (!job->batch)
......@@ -474,9 +476,6 @@ _setup_io(slurmd_job_t *job)
# endif /* PR_SET_DUMPABLE */
#endif /* !NDEBUG */
if (rc < 0)
return ESLURMD_IO_ERROR;
debug2("Leaving _setup_io");
return SLURM_SUCCESS;
}
......
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