title: Are child processes created with fork() automatically killed when the parent is killed?
body: <p>I'm creating child processes with <code>fork()</code> in C/C++.<br />
  When the parent process ends (or is killed for some reason) I want all child processes to be killed as well.<br />
  Is that done automatically by the system? Or I have to do it myself?</p>
  <hr />
  <p>Pre-existing similar questions:</p>
  <ul>
  <li><a href="https://stackoverflow.com/questions/269494/how-can-i-cause-a-child-process-to-exit-when-the-parent-does">How can I cause a child process to exit when the parent does?</a></li>
  <li><a href="https://stackoverflow.com/questions/284325/how-to-make-child-process-die-after-parent-exits">How to make child process die after parent exits?</a></li>
  </ul>