[Python-Dev] os.wait unweirding

Guido van Rossum guido@python.org
Mon, 23 Sep 2002 11:42:09 -0400


> for i in a:
>   print os.spawnv(os.P_NOWAIT,scr,["",str(i)])
> 
> for i in a:
>   os.wait()
> 
> you have to do the second loop in order to wait for all children that u
> spawned off. I think that os.wait() without any arguments should wait
> for all chilren, not wait for the earliest executed child.

Go talk to the designers of Unix and the POSIX standard committee.

--Guido van Rossum (home page: http://www.python.org/~guido/)