summaryrefslogtreecommitdiff
path: root/buildstream/_artifactcache/pushreceive.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2017-11-30 14:44:39 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2018-01-11 18:18:14 +0000
commit1787ff21c4d5b9f318b65c63743f4b4811ac1c97 (patch)
tree967fb2f4e138c1c02e07b3147be6edf96aa0b91f /buildstream/_artifactcache/pushreceive.py
parent20d653de3c46aa66b70116de68b78487225b2f23 (diff)
downloadbuildstream-1787ff21c4d5b9f318b65c63743f4b4811ac1c97.tar.gz
_artifactcache/pushreceive.py: Flush but do not close stdout
Closing stdout will cause an exception when used with multiprocessing as that calls sys.stdout.flush() as well.
Diffstat (limited to 'buildstream/_artifactcache/pushreceive.py')
-rw-r--r--buildstream/_artifactcache/pushreceive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_artifactcache/pushreceive.py b/buildstream/_artifactcache/pushreceive.py
index e96cba59f..d78e36043 100644
--- a/buildstream/_artifactcache/pushreceive.py
+++ b/buildstream/_artifactcache/pushreceive.py
@@ -544,7 +544,7 @@ class OSTreeReceiver(object):
def close(self):
shutil.rmtree(self.tmpdir)
- sys.stdout.close()
+ sys.stdout.flush()
return 0
def run(self):