Merge branch 'crashlog_improvements' into jgrpp

This commit is contained in:
Jonathan G Rennison
2016-03-21 20:47:16 +00:00
4 changed files with 8 additions and 4 deletions

View File

@@ -206,6 +206,8 @@ class CrashLogUnix : public CrashLog {
}
buffer += seprintf(buffer, last, "\n");
close(pipefd[0]); /* close read end */
int status;
int wait_ret = waitpid(pid, &status, 0);
if (wait_ret == -1 || !WIFEXITED(status) || WEXITSTATUS(status) != 0) {