diff options
| author | 2012-04-23 15:00:32 -0700 | |
|---|---|---|
| committer | 2012-04-23 15:00:32 -0700 | |
| commit | e8ecce7f456536f9bff788dbce949153badddbc2 (patch) | |
| tree | 7ccbb39f6a75a2663bbb67316fa3ea7142f328ea /src/compiler_llvm/compilation_unit.cc | |
| parent | 1da28750569fe8edf47bfab1397bc1d35a1dee24 (diff) | |
Forgot to close pipe -- Bug fix. Also, change to use PLOG.
Change-Id: I16653bb036881ab5c50ae2afa60f246b99febb5c
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)); |