title: Trapping signals in Python
body: <p>According to the <a href="http://docs.python.org/library/signal.html" rel="nofollow noreferrer">documentation</a>:</p>
  
  <blockquote>
    <p>There is no way to “block” signals temporarily from critical sections (since this is not supported by all Unix flavors).</p>
  </blockquote>
  
  <p>What stops me using <code>signal.signal(signum,SIG_IGN)</code> to block it, then adding the signal back?</p>