title: How can I tie together the lifetime of two processes in C#?
body: <p>I have an application that instantiates two distinct processes in C#. Let them be A and B.</p>
  <p>Usually, launching A would launch B under the hood. Because of a product bug on a specific version, for that faulty version I need to use a workaround based on launching process B first and then process A on top of it.</p>
  <p>Everything works fine functionality-wise, but closing A won't close B this way. Because B ends up having no window when A comes into play, it cannot be nicely closed after closing A (if it could, I wouldn't have this problem) and must be killed with task manager.</p>
  <p>Is there any way I can tie together the two C# <code>Process</code> objects, so that closing A would trigger the closing of B?</p>
  <p><strong>Note:</strong> Killing them inside the app I'm writing is not an option, because user must decide when the A &amp; B ensemble gets closed</p>