title: Rakefile - stop every tasks in a multitask
body: <p>I have an application running with Flask, and use Compass as css preprocessor. Which means I need to start the python server and compass for development. I made what I thought was a clever Rakefile to start everything from one command and have everything run in only one terminal window.</p>
  
  <p>Everything works, but the problem is when I try to stop everything (with <code>cmd + c</code>), it only kills the compass task and the Flask server keeps running. How can I make sure every tasks are stopped? Or is there an alternative to simultaneously launch several tasks without this issue?</p>
  
  <p>Here is my rakefile, pretty simple:</p>
  
  <pre><code># start compass
  task :compass do
    system "compass watch"
  end
  
  # start the flask server
  task :python do
    system "./server.py"
  end
  
  # open the browser once everything is ready
  task :open do
    `open "http://127.0.0.1:5000"`
  end
  
  # the command I run: `$ rake server`
  multitask :server =&gt; ['compass', 'python', 'open']
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>For the record, I was using a Makefile and everything worked perfectly. But I changed part of my workflow and started using a Rakefile, so I Rakefile'd everything and got rid of the Makefile for simplicity.</p>