title: Concurrent.futures > works well in command line, not when compiled with pyinstaller or py2exe
body: <p>I have a very simple script based on concurrent.futures that works well in command line (Python 2.7), but crashes when compiled with py2exe or Pyinstaller (the compiled program opens an increasing number of processes and eventually completely blocks windows if I don't kill them all first).</p>
  
  <p>The code is very standard/simple so I struggle to understand the origin of this issue... Has anyone experienced this earlier? (I found discussions related to a similar issue with multiprocessing... but nothing that I could use to solve my problem)</p>
  
  <pre><code># -*- coding: utf8 -*-
  import os
  import socket
  import concurrent.futures
  
  def simple_checkDomain(aDomain):
      print aDomain 
      # Do other stuff
  
  def main():
  
      with concurrent.futures.ProcessPoolExecutor(max_workers=4) as executor:
          for domain in ["google.com","yahoo.com"]:
              job = executor.submit(simple_checkDomain, domain)
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>Best regards,
  S</p>