qmi.tools.proc.shutdown_context

qmi.tools.proc.shutdown_context(context_name: str, progressfn: Callable[[str], None]) ShutdownResult

Send a shutdown request to the specified context.

Send a soft shutdown request and wait until the context goes away. If that does not work, send a hard shutdown request and wait until the context goes away. If that does not work, give up and report failure.

Parameters:
  • context_name – Context to shut down.

  • progressfn – Callback function to report progress message.

Returns:

Instance with values responding, pid, success.

Return type:

ShutdownResult

Raises:

ProcessException – If an error occurs.