Re: Subprocess does not return for longer-running process

2010-09-24 Thread Nobody
On Fri, 24 Sep 2010 15:18:47 +1200, Lawrence D'Oliveiro wrote: And I can't think of any reason why you should use os.waitpid() or similar; use the .wait() method. I have used WNOHANG to poll for completion of a subprocess while providing progress updates to the user. This can be done via

Re: Subprocess does not return for longer-running process

2010-09-23 Thread Nobody
On Thu, 23 Sep 2010 12:25:53 +1200, Lawrence D'Oliveiro wrote: And I can't think of any reason why you should use os.waitpid() or similar; use the .wait() method. I have used WNOHANG to poll for completion of a subprocess while providing progress updates to the user. This can be done via

Re: Subprocess does not return for longer-running process

2010-09-23 Thread Lawrence D'Oliveiro
In message pan.2010.09.23.17.17.56.906...@nowhere.com, Nobody wrote: On Thu, 23 Sep 2010 12:25:53 +1200, Lawrence D'Oliveiro wrote: And I can't think of any reason why you should use os.waitpid() or similar; use the .wait() method. I have used WNOHANG to poll for completion of a

Re: Subprocess does not return for longer-running process

2010-09-22 Thread Nobody
On Tue, 21 Sep 2010 23:54:04 -0700, Dennis Lee Bieber wrote: As your Traceback clearly indicates, the Popen() call has already completed; it's *the os.waitpid() call* that's blocking, but that's entirely to be expected given its defined behavior. If you don't want to wait around for the

Re: Subprocess does not return for longer-running process

2010-09-22 Thread Lawrence D'Oliveiro
In message pan.2010.09.22.16.38.25.844...@nowhere.com, Nobody wrote: And I can't think of any reason why you should use os.waitpid() or similar; use the .wait() method. I have used WNOHANG to poll for completion of a subprocess while providing progress updates to the user. --

Subprocess does not return for longer-running process

2010-09-21 Thread Jason Friedman
Hello, The Popen call does not return if the underlying OS call runs longish, as the example below shows. Although, if the underlying OS call is merely sleep N it will return even after quite a long time. wikiu...@dvprwiki1:~ python --version Python 2.6.4 wikiu...@dvprwiki1:~ time

Re: Subprocess does not return for longer-running process

2010-09-21 Thread Chris Rebert
On Tue, Sep 21, 2010 at 3:06 PM, Jason Friedman jsf80...@gmail.com wrote: Hello, The Popen call does not return if the underlying OS call runs longish, as the example below shows. snip wikiu...@dvprwiki1:~ time $HOME/scripts/subprocess_test.py /opt/confluence-cli-1.5.0/confluence.sh --action