diff options
author | Jürg Billeter <j@bitron.ch> | 2019-06-18 10:06:40 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-06-19 09:11:52 +0000 |
commit | e0b85f1785a237ec7093d3b63d93296a7a37564e (patch) | |
tree | 89eccd35d36c995b5932d9fd4e919c5be4263f87 | |
parent | dd57aab55b786e92b9d93c3ec3c8121e57ab73fe (diff) | |
download | buildstream-e0b85f1785a237ec7093d3b63d93296a7a37564e.tar.gz |
casremote.py: Guard against gRPC channels in the main process
-rw-r--r-- | src/buildstream/_cas/casremote.py | 3 |
1 files changed, 3 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 |