title: OSError: [WinError 87]The parameter is incorrect
body: <p>I am learning distributed process on an python tutorial website  : <a href="https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001431929340191970154d52b9d484b88a7b343708fcc60000#0" rel="noreferrer">https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001431929340191970154d52b9d484b88a7b343708fcc60000#0</a></p>
  <p>Here is the turorial code that run as a main process.</p>
  <h1>task_master.py</h1>
  <pre><code>import random, time, queue
  from multiprocessing.managers import BaseManager
  
  
  task_queue = queue.Queue()
  result_queue = queue.Queue()
  
  class QueueManager(BaseManager):
      pass
      
  QueueManager.register('get_task_queue', callable=lambda:task_queue)
  QueueManager.register('get_result_queue', callable=lambda:result_queue)
  manager = QueueManager(address=('',5000), authkey=b'abc')
  manager.start()
  task = manager.get_task_queue()
  result = manager.get_result_queue()
  for i in range(10):
      n = random.randint(0,10000)
      print('Put task %d...' %n)
      task.put(n)
  print('Try get result...')
  for i in range(10):
      r = result.get(timeout = 10)
      print('Result:%s'%r)
  manager.shutdown()
  print('master exit.')
  </code></pre>
  <p>The code is not completed, for it raises some errors that I have no idea how to deal with when I tied to run it on my computer.</p>
  <h1>error</h1>
  <pre><code>D:\py&gt;Traceback (most recent call last):
    File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;C:\Users\Raven\AppData\Local\Programs\Python\Python36\lib\multiprocessing\spawn.py&quot;, line 99, in spawn_main
      new_handle = reduction.steal_handle(parent_pid, pipe_handle)
    File &quot;C:\Users\Raven\AppData\Local\Programs\Python\Python36\lib\multiprocessing\reduction.py&quot;, line 82, in steal_handle
      _winapi.PROCESS_DUP_HANDLE, False, source_pid)
  OSError: [WinError 87] The parameter is incorrect。
  </code></pre>