diff options
Diffstat (limited to 'src/compiler_llvm/compilation_unit.cc')
| -rw-r--r-- | src/compiler_llvm/compilation_unit.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc index 909248594a..ccad0f46b1 100644 --- a/src/compiler_llvm/compilation_unit.cc +++ b/src/compiler_llvm/compilation_unit.cc @@ -172,7 +172,7 @@ bool CompilationUnit::Materialize() { // Prepare the pipe between parent process and child process int pipe_fd[2]; if (pipe(pipe_fd) == -1) { - LOG(FATAL) << "Failed to create pipe for CompilerWorker"; + PLOG(FATAL) << "Failed to create pipe for CompilerWorker"; return false; } @@ -226,6 +226,8 @@ bool CompilationUnit::Materialize() { } } + close(pipe_fd[0]); + // Wait for child to finish int status; pid_t got_pid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); |