Reader either uses readline() or read(size). If only partial data
are available, reader blocks. Writer may then block on stderr.
---
worker.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/worker.py b/worker.py
index fe6758f..b67b5bd 100755
--- a/worker.py
+++ b/worker.py
@@ -60,6 +60,8 @@ def main(args):
v = None
globalopts[k] = v
+ # turn off buffering on stdout
+ sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
reldir = external_data['_reldir']
ts = rpmUtils.transaction.initReadOnlyTransaction()
--
1.7.11.7
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel