1 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
6 from io import StringIO
8 def rw_pipe(buf_, infd, outfd):
10 buf.write(buf_.read())
16 while not (rd_fin and wr_fin):
25 i, o, e = select.select(i, o, [])
27 s = os.read(outfd.fileno(), 1000)
38 cnt = os.write(infd.fileno(), s)