We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a36f96c + dd2b587 commit 9e71431Copy full SHA for 9e71431
src/subprocess-posix.cc
@@ -88,6 +88,8 @@ bool Subprocess::Start(SubprocessSet* set, const string& command) {
88
Fatal("posix_spawn_file_actions_adddup2: %s", strerror(errno));
89
if (posix_spawn_file_actions_adddup2(&action, output_pipe[1], 2) != 0)
90
91
+ if (posix_spawn_file_actions_addclose(&action, output_pipe[1]) != 0)
92
+ Fatal("posix_spawn_file_actions_addclose: %s", strerror(errno));
93
// In the console case, output_pipe is still inherited by the child and
94
// closed when the subprocess finishes, which then notifies ninja.
95
}
0 commit comments