title: Python - Trap all signals
body: <p>In python 2.6 under Linux, I can use the following to handle a TERM signal:</p>
  
  <pre><code>import signal
  def handleSigTERM():
      shutdown()
  signal.signal(signal.SIGTERM, handleSigTERM)    
  </code></pre>
  
  <p>Is there any way to setup a handler for all signals received by the process, other than just setting them up one-at-a-time?</p>