Close read end of pipe after reading in gdb stack trace mode.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user