summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorNicolas Schodet2008-06-09 23:10:00 +0200
committerNicolas Schodet2008-06-09 23:10:00 +0200
commit3fb0574665340991c2238e514cdaf7ebb78ee748 (patch)
tree1046428c678e097d5f62fa42f36c9c2fe2e239b4 /host
parent76597a37b41195b55f99a3feab83930c913b6228 (diff)
* 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.
Diffstat (limited to 'host')
-rw-r--r--host/proto/popen_io.py2
1 files changed, 1 insertions, 1 deletions
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