How can I know when a sub-process is effectively initialized?

Tim Golden mail at timgolden.me.uk
Fri Feb 27 15:54:10 CET 2009


Giampaolo Rodola' wrote:
> It seems to work fine on posix but we still got problems on Windows
> where it seems that waiting for pid to show up in the system process
> list is not enough for considering the process effectively
> initialized.
> Anyway, I think it's a problem in our code.
> Thanks for your help, anyway.


On Windows, I'd just wait on a Windows event. The child process
sets it; the parent waits on it. If you need various of them,
the parent can pass a suitable id on the commandline to the
child. There are alternatives but this one is very easy to achieve.

TJG



More information about the Python-list mailing list