tools/python/google/process_utils.py
def KillAll(executables):
  """Tries to kill all copies of each process in the processes list.  Returns
  an error if any running processes couldn't be killed.
  """
  result = 0
  if os.path.exists(TASKKILL):
    command = [TASKKILL, '/f', '/im']
    process_not_found_err = TASKKILL_PROCESS_NOT_FOUND_ERR
  else:
    command = [PSKILL, '/t']
    process_not_found_err = PSKILL_PROCESS_NOT_FOUND_ERR

  for name in executables:
    new_error = RunCommand(command + [name])
    # Ignore "process not found" error.
    if new_error != 0 and new_error != process_not_found_err:
      result = new_error
  return result
Tries to kill all copies of each process in the processes list.  Returns
  an error if any running processes couldn't be killed.
  
Tries to kill all copies of each process in the processes list.  Returns
an error if any running processes couldn't be killed.
Tries to kill all copies of each process in the processes list . Returns an error if any running processes couldn ' t be killed .
def KillAll(executables):
  result = 0
  if os.path.exists(TASKKILL):
    command = [TASKKILL, '/f', '/im']
    process_not_found_err = TASKKILL_PROCESS_NOT_FOUND_ERR
  else:
    command = [PSKILL, '/t']
    process_not_found_err = PSKILL_PROCESS_NOT_FOUND_ERR
  for name in executables:
    new_error = RunCommand(command + [name])
    if new_error != 0 and new_error != process_not_found_err:
      result = new_error
  return result
def KillAll ( executables ) : result = 0 if os . path . exists ( TASKKILL ) : command = [ TASKKILL , '/f' , '/im' ] process_not_found_err = TASKKILL_PROCESS_NOT_FOUND_ERR else : command = [ PSKILL , '/t' ] process_not_found_err = PSKILL_PROCESS_NOT_FOUND_ERR for name in executables : new_error = RunCommand ( command + [ name ] ) if new_error != 0 and new_error != process_not_found_err : result = new_error return result
Tries to kill all copies of each process in the processes list.
Tries to kill all copies of each process in the processes list .
"""Tries to kill all copies of each process in the processes list.  Returns
  an error if any running processes couldn't be killed.
  """ # Ignore "process not found" error.
executables