469,625 Members | 1,089 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

popen4 poll problems

Jim
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
Jul 18 '05 #1
0 1237

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Patrick L. Nolan | last post: by
2 posts views Thread by Patrick L. Nolan | last post: by
1 post views Thread by Vivien Mallet | last post: by
reply views Thread by Jim | last post: by
reply views Thread by Roman Yakovenko | last post: by
4 posts views Thread by billie | last post: by
2 posts views Thread by Grant Edwards | last post: by
reply views Thread by micklee74 | last post: by
1 post views Thread by julian | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.