title: ForkManager SIGINT only kills current process in fork
body: <p>I want to have all child processes die when I kill a perl process that is using ForkManager. In the code below, if I run it and hit <kbd>ctrl</kbd>+<kbd>c</kbd> while the sleep line is running, the sleep process is killed, but the <code>print</code> lines are then all simultaneously executed before the script ends. Ideally, I'd like an interrupt to immediately stop all execution. What can I do?</p>
  
  <pre><code>#!/usr/bin/perl -w
  use Parallel::ForkManager;
  
  main {
      my $fork1 = new Parallel::ForkManager(8);
      while (1) {
          $fork1-&gt;start and next;
          system("sleep 15s");
          print "Still going!"
          $fork1-&gt;finish;
      }
      fork1-&gt;wait_all_children;
  }
  </code></pre>