From 3fb0574665340991c2238e514cdaf7ebb78ee748 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 9 Jun 2008 23:10:00 +0200 Subject: * host/proto: - fixed popen_io buffering. If there is buffering, data is read and placed in the file buffer, but the select call does not see it. --- host/proto/popen_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') diff --git a/host/proto/popen_io.py b/host/proto/popen_io.py index f1c3cb84..235151d3 100644 --- a/host/proto/popen_io.py +++ b/host/proto/popen_io.py @@ -30,7 +30,7 @@ class PopenIO: def __init__ (self, cmd): """Initialise and start the given commande line.""" - fout, fin = os.popen2 (cmd, 'b', 1) + fout, fin = os.popen2 (cmd, 'b', 0) time.sleep (0.2) self.fin = fin self.fout = fout -- cgit v1.2.3