# HG changeset patch # User Carl Byington # Date 1467825541 25200 # Node ID 6abc3054cba2daefca6fd3c6cdfab92a289824ce # Parent 544d57fe6bc6fd49dc4ed76559ab1b9f0d5cabc4 From Jeffrey Morlan: If a readpst child process fails with a nonzero status code for whatever reason (killed, segfault, out-of-memory, ...) the parent process will continue and likely end up exiting with status 0, tricking the caller into thinking readpst was successful when it was not. diff -r 544d57fe6bc6 -r 6abc3054cba2 src/readpst.c --- a/src/readpst.c Wed Jul 06 10:17:49 2016 -0700 +++ b/src/readpst.c Wed Jul 06 10:19:01 2016 -0700 @@ -180,6 +180,9 @@ //printf("Process %d terminated with signal %d\n", child, sig); //fflush(stdout); } + if (status != 0) { + exit(status); + } // this has terminated, remove it from the list for (j=i; j