Re: Timeout to readline()/readlines()

2007-03-19 Thread Hendrik van Rooyen
"Horta" <[EMAIL PROTECTED]> wrote: > Sometimes, when I do an os.popen*(), the process executed by the > command hangs, and the script stops forever on the readline()/ > readlines() calls. I found that I can use select, but I'm thinking... > if, after a sellect() call returns, the stdout (for exam

Timeout to readline()/readlines()

2007-03-19 Thread Horta
Hi folks, Sometimes, when I do an os.popen*(), the process executed by the command hangs, and the script stops forever on the readline()/ readlines() calls. I found that I can use select, but I'm thinking... if, after a sellect() call returns, the stdout (for example) has more than one line