summaryrefslogtreecommitdiff
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 17:33:19 +0000
commitbc8fc4fec1923c44583ebdd9e5cedb13c78fdf18 (patch)
tree33fe6836d142fc5bc7add758b2e88e046b95e329
parentcc462c70473d8336d889249bff89c17ab52de2c1 (diff)
downloadbuildstream-bc8fc4fec1923c44583ebdd9e5cedb13c78fdf18.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.
-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):