SysProc
SysProc class.
Wrapper of psutil.Process class.
This class that only exposes necessary functionalities to easily manage shell processes.
Functions
__init__
Initialize self. See help(type(self)) for accurate signature.
process :
psutil.Process | None use_process_group :
bool - False get_all_children
Return all the chlidren of process recursively.
Return type :
list get_process
Return type :
Process is_alive
Return type :
bool is_zombie
Return type :
bool kill
kill_with_children
Kill the process and all its children.
If the process was started with a process group (start_new_session=True), sends SIGTERM to the entire process group first for graceful shutdown, waits briefly, then sends SIGKILL to any survivors. Otherwise, falls back to killing each child individually.
stats
Get process statistics
Return type :
dict wait
Wait for a process PID to terminate
timeout :
Any popen @classmethod
cmd :
Any Return type :
SysProc from_pid @staticmethod
pid :
Any Return type :
SysProc