diff options
-rw-r--r-- | src/buildstream/_cas/casremote.py | 3 | ||||
-rw-r--r-- | src/buildstream/sandbox/_sandboxremote.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/buildstream/_cas/casremote.py b/src/buildstream/_cas/casremote.py index aac0d2802..cd46e9c38 100644 --- a/src/buildstream/_cas/casremote.py +++ b/src/buildstream/_cas/casremote.py @@ -94,6 +94,9 @@ class CASRemote(): def init(self): if not self._initialized: + # gRPC doesn't support fork without exec, which is used in the main process. + assert not utils._is_main_process() + url = urlparse(self.spec.url) if url.scheme == 'http': port = url.port or 80 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'] |