Best way to monitor for a process to start
<p>I have an app (A) that communicates with another app (B) that I have not written, their is an API I subscribe to.  When B goes down A is notified nicely of this loss of application and all information against it is lost (since the process no longer exists).</p>

<p>I've written a simple threading.timer to essentially poll for when this application comes back to life to then re-initialize itself (A reinitializes to B). </p>

<p>This all works fine and dandy, I'm wondering if there is a better way to do this.</p>

<p>Thanks.</p>
