From 2ce01dafc17a8ead15f95a3ae11954d8b7839cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Mon, 2 Sep 2019 12:23:34 +0200 Subject: casserver.py: Remove notify_fork_disabled() call The fork safeguard is now handled by Context.is_fork_allowed(). --- src/buildstream/_cas/casserver.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/buildstream/_cas/casserver.py b/src/buildstream/_cas/casserver.py index 1835d118e..5a4c2b7ac 100644 --- a/src/buildstream/_cas/casserver.py +++ b/src/buildstream/_cas/casserver.py @@ -60,10 +60,6 @@ def create_server(repo, *, enable_push, quota): cas = CASCache(os.path.abspath(repo), cache_quota=quota, protect_session_blobs=False) try: - # Allow gRPC communication in main process as bst-artifact-server - # doesn't use forked subprocesses. - cas.notify_fork_disabled() - artifactdir = os.path.join(os.path.abspath(repo), 'artifacts', 'refs') sourcedir = os.path.join(os.path.abspath(repo), 'source_protos') -- cgit v1.2.1