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

patch from Hongia Cao on 8/21/06

parent e23486e6
No related branches found
No related tags found
No related merge requests found
......@@ -367,7 +367,9 @@ int srun(int ac, char **av)
/*
* We want to make sure we get the correct state of the job
* and not finish before all the messages have been sent.
*/
*/
if (job->state == SRUN_JOB_FAILED)
close(job->forked_msg->msg_par->msg_pipe[1]);
debug("Waiting for message thread");
if (pthread_join(job->jtid, NULL) < 0)
error ("Waiting on message thread: %m");
......
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