title: Python how to kill threads blocked on queue with signals?
body: <p>I start a bunch of threads working on a queue and I want to kill them when sending the SIGINT (Ctrl+C). What is the best way to handle this?</p>
  
  <pre><code>targets = Queue.Queue()
  threads_num = 10
  threads = []
  
  for i in threads_num:
      t = MyThread()
      t.setDaemon(True)
      threads.append(t)
      t.start()
  
  targets.join()
  </code></pre>