triqs.utility.redirect.T.run
- T.run()[source]
Run the pipe-pumping loop until
stop()is called.Each iteration sleeps for one second to let the OS buffer up output, then attempts a non-blocking
os.readof up to10000bytes from the pipe and writes them tosys.stdout. On exit the original file descriptor1is restored fromoldhandleand the pipe is closed.