From 07b3dc5f98cfd75cff97c815f6abb854d1e5436c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Tue, 18 Jun 2019 10:08:08 +0200 Subject: _sandboxremote.py: Guard against gRPC channels in the main process --- src/buildstream/sandbox/_sandboxremote.py | 3 +++ 1 file changed, 3 insertions(+) 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'] -- cgit v1.2.1