summaryrefslogtreecommitdiffstats
path: root/src/subprocess-posix.cc
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-05-13 19:35:52 (GMT)
committerNico Weber <thakis@chromium.org>2014-05-13 19:37:31 (GMT)
commit47993664be821df46b009d3e48d251e6266cefc9 (patch)
treead5d847c6aa2ff4efc92eec7caad75a9fa300d32 /src/subprocess-posix.cc
parent6c9a54649d4eec45f58e117612a34a2c214a0214 (diff)
downloadNinja-47993664be821df46b009d3e48d251e6266cefc9.zip
Ninja-47993664be821df46b009d3e48d251e6266cefc9.tar.gz
Ninja-47993664be821df46b009d3e48d251e6266cefc9.tar.bz2
wip for console pool on windows
Diffstat (limited to 'src/subprocess-posix.cc')
-rw-r--r--src/subprocess-posix.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/subprocess-posix.cc b/src/subprocess-posix.cc
index 793d48f..7311f64 100644
--- a/src/subprocess-posix.cc
+++ b/src/subprocess-posix.cc
@@ -84,6 +84,8 @@ bool Subprocess::Start(SubprocessSet* set, const string& command) {
error_pipe = 2;
close(output_pipe[1]);
}
+ // In the console case, child_pipe is still inherited by the child and
+ // closed when the subprocess finishes, which then notifies ninja.
execl("/bin/sh", "/bin/sh", "-c", command.c_str(), (char *) NULL);
} while (false);