qmi.tools.proc.stop_local_process

qmi.tools.proc.stop_local_process(context_name: str, pid: int) bool

Stop the specified process on the local computer.

Parameters:
  • context_name – Context to be stopped.

  • pid – Process ID.

Returns:

If the process was stopped; False: If the process was not running.

Return type:

True

Raises:

ProcessException – If the process can not be stopped.