summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-06-18 10:08:08 +0200
committerJürg Billeter <j@bitron.ch>2019-06-19 09:11:52 +0000
commit07b3dc5f98cfd75cff97c815f6abb854d1e5436c (patch)
tree7e36f9abac0f269e7f4508baa6a683eec55e077d
parente0b85f1785a237ec7093d3b63d93296a7a37564e (diff)
downloadbuildstream-juerg/grpc.tar.gz
_sandboxremote.py: Guard against gRPC channels in the main processjuerg/grpc
-rw-r--r--src/buildstream/sandbox/_sandboxremote.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/sandbox/_sandboxremote.py b/src/buildstream/sandbox/_sandboxremote.py
index 2cb7e2538..d90b164bc 100644
--- a/src/buildstream/sandbox/_sandboxremote.py
+++ b/src/buildstream/sandbox/_sandboxremote.py
@@ -60,6 +60,9 @@ class SandboxRemote(Sandbox):
if config is None:
return
+ # gRPC doesn't support fork without exec, which is used in the main process.
+ assert not utils._is_main_process()
+
self.storage_url = config.storage_service['url']
self.exec_url = config.exec_service['url']