summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-20 14:37:39 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-20 14:37:39 +0900
commit1fcfd0003fec62c18a7d7d90e6b990726b33a478 (patch)
tree0418a2f1a384857bdb5173c58b310342c0733412 /buildstream
parentbe5b26c33adc9e541476a51dded0b45ed4819852 (diff)
downloadbuildstream-1fcfd0003fec62c18a7d7d90e6b990726b33a478.tar.gz
_artifactcache/pushreceive.py: Fixed ProcessWithPipes to declare attributes in constructor
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_artifactcache/pushreceive.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/pushreceive.py b/buildstream/_artifactcache/pushreceive.py
index 92c82309c..d2eaf2dc0 100644
--- a/buildstream/_artifactcache/pushreceive.py
+++ b/buildstream/_artifactcache/pushreceive.py
@@ -387,6 +387,9 @@ class ProcessWithPipes(object):
self.stderr = open(r2, 'rb')
os.close(w2)
+ # The eventual return code
+ self.returncode = -1
+
def wait(self):
self.proc.join()
self.returncode = self.proc.exitcode