summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-10-29 13:38:22 +0000
committerAngelos Evripiotis <jevripiotis@bloomberg.net>2019-10-29 17:28:48 +0000
commitc2a5141a78284b6c522f0aa9fb0dd84f635f1f1a (patch)
tree0327814b7795732d4fe10b89c0573839fb7463ad
parentaeb17c6cc2cc206e7cabe03e3ae75f2570c024fa (diff)
downloadbuildstream-aevri/enable_spawn_ci_7.tar.gz
WIP: _fuse/mount: make _run_fuse protected, so subprocess can loadaevri/enable_spawn_ci_7
-rw-r--r--src/buildstream/_fuse/mount.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_fuse/mount.py b/src/buildstream/_fuse/mount.py
index 9141cddac..ce085123f 100644
--- a/src/buildstream/_fuse/mount.py
+++ b/src/buildstream/_fuse/mount.py
@@ -104,7 +104,7 @@ class Mount():
self.__mountpoint = mountpoint
- self.__process = Process(target=self.__run_fuse, args=(self.__logfile.name,))
+ self.__process = Process(target=self._run_fuse, args=(self.__logfile.name,))
# Ensure the child process does not inherit our signal handlers, if the
# child wants to handle a signal then it will first set its own
@@ -188,7 +188,7 @@ class Mount():
################################################
# Child Process #
################################################
- def __run_fuse(self, filename):
+ def _run_fuse(self, filename):
# Override stdout/stderr to the file given as a pointer, that way our parent process can get our output
out = open(filename, "w")
os.dup2(out.fileno(), sys.stdout.fileno())