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

Change some return codes to make srun happy

parent ef2cf714
No related branches found
No related tags found
No related merge requests found
......@@ -207,8 +207,10 @@ static void * _p_signal_task(void *args)
* Report error unless it is "Invalid job id" which
* probably just means the tasks exited in the meanwhile.
*/
if ((rc != 0) && (rc != ESLURM_INVALID_JOB_ID)
&& (rc != ESLURMD_JOB_NOTRUNNING) && (rc != ESRCH)) {
if ((rc != 0)
&& (rc != ESLURM_INVALID_JOB_ID)
&& (rc != ESLURMD_JOB_NOTRUNNING)
&& (rc != ESRCH)) {
error("%s: signal: %s", host, slurm_strerror(rc));
}
......
......@@ -857,7 +857,7 @@ _rpc_signal_tasks(slurm_msg_t *msg, slurm_addr *cli_addr)
req->job_id, req->job_step_id);
if (fd == -1) {
error("stepd_connect failed: %m");
rc = EPERM;
rc = ESLURM_INVALID_JOB_ID;
goto done;
}
if ((step = stepd_get_info(fd)) == NULL) {
......@@ -916,7 +916,7 @@ _rpc_terminate_tasks(slurm_msg_t *msg, slurm_addr *cli_addr)
req->job_id, req->job_step_id);
if (fd == -1) {
error("stepd_connect failed: %m");
rc = EPERM;
rc = ESLURM_INVALID_JOB_ID;
goto done;
}
if (!(step = stepd_get_info(fd))) {
......@@ -1048,7 +1048,7 @@ _rpc_reattach_tasks(slurm_msg_t *msg, slurm_addr *cli)
req->job_id, req->job_step_id);
if (fd == -1) {
error("stepd_connect failed: %m");
rc = EPERM;
rc = ESLURM_INVALID_JOB_ID;
goto done;
}
if ((step = stepd_get_info(fd)) == NULL) {
......
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