process wrapper?

Donn Cave donn at u.washington.edu
Tue Mar 30 01:28:56 CEST 2004


In article <5q6dndSDho6ZNPXd38DK-w at speakeasy.net>,
 "Steve @ Waypath" <steve at waypath.com> wrote:
> "Donn Cave" <donn at u.washington.edu> wrote in message
> news:donn-959027.13550629032004 at nntp6.u.washington.edu...

> > spawnv returns a process ID, if you use os.P_NOWAIT.  It returns
> > the process exit status if you use os.P_WAIT.  If you look at the
> > code, in os.py, you will see that this second variation is essentially
> > implemented by applying waitpid() to the first.
> 
> So, if I'm following this correctly, if I use os.P_NOWAIT, I shouldn't have
> to apply waitpid(), no? And, then, I shouldn't have a zombie process if I
> use P_NOWAIT, either. Am I getting this?

Well, no, I believe you have it backwards.

   Donn Cave, donn at drizzle.com



More information about the Python-list mailing list