diff --git a/src/os/unix/crashlog_unix.cpp b/src/os/unix/crashlog_unix.cpp index 175eb7c534..d8f95908b4 100644 --- a/src/os/unix/crashlog_unix.cpp +++ b/src/os/unix/crashlog_unix.cpp @@ -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) {