Problem with running external process

ToMasz t_mo_info at o2.pl
Mon Jan 23 13:03:28 EST 2006


Yes, each time the process is created, it remains.

os.waitpid(-1, os.WNOHANG) doesn't work before starting  the process
for the first time.

I tried this:

pid = os.fork()
if pid == 0:
      os.execl('ext_script.py','ext_script.py')
else:
      (pid,status) = os.waitpid(pid, 0)

It seems to work without leaving zombies.




More information about the Python-list mailing list