Skip to content
Snippets Groups Projects
Commit d5f7ea6d authored by Mark Grondona's avatar Mark Grondona
Browse files

o move test for ESRCH in prgdestroy up above error(). errno was probably

   being reset by the time we tested for it.
parent 03b1dfda
No related branches found
No related tags found
No related merge requests found
......@@ -53,11 +53,9 @@ _wait_and_destroy_prg(qsw_jobinfo_t qsw_job)
debug3("going to destory program description...");
while(qsw_prgdestroy(qsw_job) < 0) {
while((qsw_prgdestroy(qsw_job) < 0) && (errno != ESRCH)) {
i++;
error("qsw_prgdestroy: %m");
if (errno == ESRCH)
break;
if (i == 1) {
debug("sending SIGTERM to remaining tasks");
qsw_prgsignal(qsw_job, SIGTERM);
......
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