diff --git a/src/common/global_srun.c b/src/common/global_srun.c index 17bf9ab1e4da516d5034235053dbf535f7e16e69..6a7c7c417ea39b1967bd66cfbf93f10e45956894 100644 --- a/src/common/global_srun.c +++ b/src/common/global_srun.c @@ -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)); } diff --git a/src/slurmd/slurmd/req.c b/src/slurmd/slurmd/req.c index b19d0e56ea7b7ee6311cc6e11f5e1fb1dad1aec5..6cb3a438e586d55c8f85e8740dbc3c9511571f9c 100644 --- a/src/slurmd/slurmd/req.c +++ b/src/slurmd/slurmd/req.c @@ -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) {