title: How to kill subprocess python in windows
body: <p>How would I go about killing a process on Windows?</p>
  
  <p>I am starting the process with</p>
  
  <pre><code>    self.p = Process(target=self.GameInitialize, args=(testProcess,))
      self.p.start()
  </code></pre>
  
  <p>I have tried</p>
  
  <pre><code>self.p.kill()
  self.p.terminate()
  os.kill(self.p.pid, -1)
  os.killpg(self.p.pid, signal.SIGTERM)  # Send the signal to all the process groups
  </code></pre>
  
  <p>Errors</p>
  
  <pre><code>Process Object has no Attribute kill
  Process Object has no Attribute terminate
  Access Denied
  </code></pre>
  
  <p>I cannot use <code>.join.</code></p>