<p><br>
On Sep 19, 2012 9:37 AM, "andrea crotti" <<a href="mailto:andrea.crotti.0@gmail.com">andrea.crotti.0@gmail.com</a>> wrote:<br>
> Well there is a process which has to do two things, monitor<br>
> periodically some external conditions (filesystem / db), and launch a<br>
> process that can take very long time.<br>
><br>
> So I can't put a wait anywhere, or I'll stop everything else.  But at<br>
> the same time I need to know when the process is finished, which I<br>
> could do but without a wait might get hacky.<br>
><br>
> So I'm quite sure I just need to run the subprocess in a subthread<br>
> unless I'm missing something obvious.</p>
<p>If you want to see if a processes has terminated without waiting, use poll. <br>
</p>