summaryrefslogtreecommitdiff
path: root/distbuild/build_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'distbuild/build_controller.py')
-rw-r--r--distbuild/build_controller.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/distbuild/build_controller.py b/distbuild/build_controller.py
index cfa0e2e2..8dbbaef9 100644
--- a/distbuild/build_controller.py
+++ b/distbuild/build_controller.py
@@ -246,6 +246,9 @@ class BuildController(distbuild.StateMachine):
def _request_command_execution(self, argv, request_id):
'''Tell the controller's distbuild-helper to run a command.'''
+ if self.mainloop.n_state_machines_of_type(distbuild.HelperRouter) == 0:
+ self.fail('No distbuild-helper process running on controller!')
+
msg = distbuild.message('exec-request',
id=request_id,
argv=argv,