title: Stop script within forked process
body: <p>I have</p>
  
  <pre><code>backupCommand = "rsync #{rsyncOptions} #{directory} #{backupSSH}:#{@backupPath}"
  pid = fork {   
    system backupCommand
    Kernel.trap('INT') {
      Kernel.exit
    }   
  }   
  Process.detach(pid)
  </code></pre>
  
  <p>What I want to happen is, if the script runs and I want to stop it, a ctrl-c should kill the script and all process it forked. </p>