summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-08-07 14:15:30 +0200
committerJürg Billeter <j@bitron.ch>2019-08-20 08:09:52 +0200
commit917e43d0d370bae80276450004df523339e92bc1 (patch)
treed69f8ea1261a605bb3199d01757bbac42caecc5a
parent3865545ad346e60a5c179e590475a8f149fcc238 (diff)
downloadbuildstream-917e43d0d370bae80276450004df523339e92bc1.tar.gz
_stream.py: Disable fork for Element._shell()
With the buildbox sandboxing backend, communication with casd is required by Element._shell(). Disable fork after preparation to allow communication with casd in the main process.
-rw-r--r--src/buildstream/_stream.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 15410fb28..167127cf2 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -223,6 +223,8 @@ class Stream():
else:
buildtree = True
+ self._context.disable_fork()
+
return element._shell(scope, directory, mounts=mounts, isolate=isolate, prompt=prompt, command=command,
usebuildtree=buildtree)