1 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
7 def rw_pipe(buf_, infd, outfd):
8 buf = StringIO.StringIO()
10 ret = StringIO.StringIO()
15 while not (rd_fin and wr_fin):
24 i, o, e = select.select(i, o, [])
26 s = os.read(outfd.fileno(), 1000)
37 cnt = os.write(infd.fileno(), s)