title: Signal handling in Pylons
body: <p>I have a pylons project where I need to update some in-memory structures periodically. This should be done on-demand. I decided to come up with a signal handler for this. User sends <code>SIGUSR1</code> to the main pylons thread and it is handled by the project. </p>
  
  <p>This works except after handling the signal, the server crashes with following exception:</p>
  
  <pre><code>File "/usr/lib/python2.6/SocketServer.py", line 264, in handle_request
     fd_sets = select.select([self], [], [], timeout)
  select.error: (4, 'Interrupted system call')
  </code></pre>
  
  <p>Is it possible to fix this?</p>
  
  <p>TIA.</p>