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

clean up code

parent dbdaa768
No related branches found
No related tags found
No related merge requests found
...@@ -214,17 +214,14 @@ static void * _p_signal_task(void *args) ...@@ -214,17 +214,14 @@ static void * _p_signal_task(void *args)
itr = list_iterator_create(ret_list); itr = list_iterator_create(ret_list);
while((ret_type = list_next(itr)) != NULL) { while((ret_type = list_next(itr)) != NULL) {
rc = ret_type->msg_rc; rc = ret_type->msg_rc;
if(!ret_type->ret_data_list)
host = job->step_layout->host[info->host_inx];
else
host = NULL;
/* /*
* Report error unless it is "Invalid job id" which * Report error unless it is "Invalid job id" which
* probably just means the tasks exited in the meanwhile. * probably just means the tasks exited in the meanwhile.
*/ */
if ((rc != 0) && (rc != ESLURM_INVALID_JOB_ID) if ((rc != 0) && (rc != ESLURM_INVALID_JOB_ID)
&& (rc != ESLURMD_JOB_NOTRUNNING) && (rc != ESRCH)) { && (rc != ESLURMD_JOB_NOTRUNNING) && (rc != ESRCH)) {
if(!host) { if(ret_type->ret_data_list) {
while((ret_data_info while((ret_data_info
= list_pop(ret_type->ret_data_list))) { = list_pop(ret_type->ret_data_list))) {
error("%s: signal: %s", error("%s: signal: %s",
...@@ -234,7 +231,7 @@ static void * _p_signal_task(void *args) ...@@ -234,7 +231,7 @@ static void * _p_signal_task(void *args)
} }
} else { } else {
error("%s: signal: %s", error("%s: signal: %s",
host, job->step_layout->host[info->host_inx],
slurm_strerror(rc)); slurm_strerror(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