aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-03-11 14:36:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-03-11 14:38:39 +0200
commit73272586982c1e8821cb2a84c63e3e01333345b9 (patch)
tree9ac150b26a1942e72e42361d2996dd58c51e4080
parent5b535801ec2693a32c6f94461d08905a6821bfb5 (diff)
Release other machine locks before bootstrapping
-rw-r--r--bbot/agent/agent.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx
index 5fc3bc9..9e39b0a 100644
--- a/bbot/agent/agent.cxx
+++ b/bbot/agent/agent.cxx
@@ -723,6 +723,12 @@ try
// bootstrap the new machine. Then atomically rename it to
// <name>-<toolchain>.
//
+ // Also release all the machine locks that we have acquired so far
+ // since the bootstrap will take a while and other instances might
+ // be able to use them.
+ //
+ r.clear ();
+
bmm = bootstrap_machine (xp, mm, move (bmm));
if (!bmm)