title: Python multiprocessing Pool hangs on ubuntu server
body: <p>I'm running Django on an Ubuntu server with nginx and gunicorn. I'm trying to do some multiprocessing which is working on my local machine but hangs until the gunicorn worker times out on my server.</p>
  
  <pre><code>cpu_count = int(multiprocessing.cpu_count())
  pool = Pool(processes = cpu_count)
  result = pool.map_async(apiSimulAvail, rate_ranges)
  result.wait()
  
  ...do some more stuff once all processes return
  </code></pre>
  
  <p>It hangs at <code>pool = Pool(processes = cpu_count)</code>. I don't get any errors, the gunicorn worker just times out and reboots.</p>
  
  <p>Any indication as to why this is happening and/or how I can solve it is greatly appreciated. Thanks.</p>