parameters: (self, group=True)
docstring: Kill the process. If group=True, all sub-processes will also be killed.
docstring_summary: Kill the process. If group=True, all sub-processes will also be killed.
docstring_tokens: Kill the process . If group = True all sub - processes will also be killed .
function: def kill(self, group=True):
          """Kill the process. If group=True, all sub-processes will also be killed."""
          if mswindows:
              if group:
                  winprocess.TerminateJobObject(self._job, 127)
              else:
                  winprocess.TerminateProcess(self._handle, 127)
              self.returncode = 127    
          else:
              if sys.platform == 'cygwin':
                  cmd = "taskkill /f /pid " + str(self.pid)
                  if group:
                      cmd += " /t"
                  os.system(cmd)
              elif group:    
                  os.killpg(self.pid, signal.SIGKILL)
              else:
                  os.kill(self.pid, signal.SIGKILL)
              self.returncode = -9
function_tokens: def kill ( self , group = True ) : if mswindows : if group : winprocess . TerminateJobObject ( self . _job , 127 ) else : winprocess . TerminateProcess ( self . _handle , 127 ) self . returncode = 127 else : if sys . platform == 'cygwin' : cmd = "taskkill /f /pid " + str ( self . pid ) if group : cmd += " /t" os . system ( cmd ) elif group : os . killpg ( self . pid , signal . SIGKILL ) else : os . kill ( self . pid , signal . SIGKILL ) self . returncode = - 9