[projects/pld-builder.new] Read stdout data (that we ignore anyway) to avoid 'Broken pipe' error.

arekm arekm at pld-linux.org
Thu Sep 16 08:04:20 CEST 2021


commit f96ef0dcd8da54bb0857f12b7536cea1e490f37d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Sep 16 08:03:51 2021 +0200

    Read stdout data (that we ignore anyway) to avoid 'Broken pipe' error.

 PLD_Builder/chroot.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/PLD_Builder/chroot.py b/PLD_Builder/chroot.py
index 6e7976a..e214ae1 100644
--- a/PLD_Builder/chroot.py
+++ b/PLD_Builder/chroot.py
@@ -44,6 +44,8 @@ def run(cmd, user = "builder", logfile = None, logstdout = None):
     if logstdout != None:
         for l in f:
             logstdout.write(l)
+    else:
+        f.read()
     r = f.close()
     if r == None:
         return 0
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/f96ef0dcd8da54bb0857f12b7536cea1e490f37d



More information about the pld-cvs-commit mailing list