popen4 poll problems

Jim jim_8421 at hotmail.com
Sun Aug 1 18:23:16 EDT 2004


Hi,

I noticed with popen2.Popen4 class, sometimes the poll() method will
keep returning -1 although the command has finished.

However, when a read is done ( ex. p4instance.fromchild.read() ) and
then a poll is done, poll() will return the process exit value.

Why does this happen?  perhaps I have to do some type of flush before
doing poll?

Thanks in advance
Cheers,
Jim



More information about the Python-list mailing list