From 3096c4ec72f0f22c7e3f2783b2858f85f0730259 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Tue, 30 Nov 2010 16:19:02 -0800 Subject: [PATCH] don't wait for subprocs when none running --- build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.cc b/build.cc index a7d2418..83282e5 100644 --- a/build.cc +++ b/build.cc @@ -113,7 +113,7 @@ bool RealCommandRunner::StartCommand(Edge* edge) { } void RealCommandRunner::WaitForCommands() { - while (subprocs_.finished_.empty()) { + while (subprocs_.finished_.empty() && !subprocs_.running_.empty()) { subprocs_.DoWork(); } } -- 2.7.4