1 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
6 if sys.version_info[0] == 2:
9 from io import StringIO
11 def rw_pipe(buf_, infd, outfd):
13 buf.write(buf_.read())
19 while not (rd_fin and wr_fin):
28 i, o, e = select.select(i, o, [])
30 s = os.read(outfd.fileno(), 1000)
41 cnt = os.write(infd.fileno(), s)