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

o small, temporary fixes for io truncation

parent bbd592cb
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ main(int ac, char **av)
allocation_resp *resp;
job_t *job;
struct sigaction action;
int i;
log_options_t logopt = LOG_OPTS_STDERR_ONLY;
......@@ -189,10 +190,14 @@ main(int ac, char **av)
/* kill signal thread */
pthread_kill(job->sigid, SIGTERM);
/* flush stdio and kill io thread */
fflush(stderr);
fflush(stdout);
pthread_kill(job->ioid, SIGTERM);
/* wait for stdio */
for (i = 0; i < opt.nprocs; i++) {
if (job->out[i] == -1)
job->out[i] = -9;
if (job->err[i] == -1)
job->err[i] = -9;
}
pthread_join(job->ioid, NULL);
exit(0);
}
......
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