title: Parent process and child process relation
body: <p>I have parent process that opens child process . I need to perform some functionality only when the parent process is no more running. </p>
  
  <p>What is the best way to know that the parent process is not running ? Because it can be terminated violently then I don't want to make some  functionality that will send signal to my child process on the closing event.</p>
  
  <p>Or just looking for my parent process like that:</p>
  
  <p>In the parent make this and pass it to the child  <code>Process.GetCurrentProcess().Id</code>
  And in the child every several milliseconds check this one </p>
  
  <pre><code>Process localById = Process.GetProcessById(1234);
  </code></pre>
  
  <p>Any ideas ? Recommendations ..</p>