On Sat, 25 Dec 2004 08:20:24 -0600 Jeff Epler <[EMAIL PROTECTED]> wrote:
> Next, you'll want to wait for each process you started:
> for current_text in texts:
> os.waitpid(-1, 0)
> print 'this is the end'
This can eventually die with exception. The proper way is:
try:
while True:
os.waitpid(-1, 0)
except OSError, exc:
if exc.errno!=errno.ECHILD:
raise
--
Denis S. Otkidach
http://www.python.ru/ [ru]
--
http://mail.python.org/mailman/listinfo/python-list
