5.3.1.20.2.2. cli.com.com_interface.ProcessInterface

class cli.com.com_interface.ProcessInterface(group=None, target=None, name=None, args=(), kwargs={}, *, daemon=None)

Abstract base class for communication processes. Provides shutdown signaling and enforces implementation of the run method.

__init__(group=None, target=None, name=None, args=(), kwargs={}, *, daemon=None)

Methods

__init__([group, target, name, args, ...])

close()

Close the Process object.

is_alive()

Return whether process is alive

join([timeout])

Wait until child process terminates

kill()

Terminate process; sends SIGKILL signal or uses TerminateProcess()

run()

Main process logic.

shutdown()

Signals the process to shut down by setting the shutdown event.

start()

Start child process

terminate()

Terminate process; sends SIGTERM signal or uses TerminateProcess()

Attributes

authkey

daemon

Return whether process is a daemon

exitcode

Return exit code of process or None if it has yet to stop

ident

Return identifier (PID) of process or None if it has yet to start

name

pid

Return identifier (PID) of process or None if it has yet to start

sentinel

Return a file descriptor (Unix) or handle (Windows) suitable for waiting for process termination.

control

parameter