title: Can I run pika's connection.ioloop.start() in a daemon?
body: <p>I'm trying to set up a worker daemon for processing messages from rabbitmq.  I'm using pika and its SelectConnection.  The code works fine if I don't run it as a daemon.  I can use </p>
  
  <pre><code>py worker.py
  </code></pre>
  
  <p>and</p>
  
  <pre><code>py worker.py &amp;
  </code></pre>
  
  <p>successfully.  However, when I add </p>
  
  <pre><code>import daemon
  with daemon.DaemonContext():
      connection.ioloop.start()
  </code></pre>
  
  <p>to worker.py, The code, while it doesn't raise any exceptions, stops fetching messages from the queue and maxes out my CPU utilization.  worker.py looks exactly like <a href="http://pika.github.com/connecting.html#continuation-passing-style" rel="nofollow" title="this">this</a> example.</p>
  
  <p>thanks.</p>