Reaper
Inherits: RefCounted
Methods
| Returns | Signature |
|---|---|
| int | create_process(cmd: String, args: PackedStringArray, app_id: int = -1) |
| String | get_reaper_command() |
| void | reap(pid: int, sig: int = 15) |
| Array | get_children_with_pgid(pid: int, pgid: int) |
| int | get_parent_pid(pid: int) |
| int | get_pid_group(pid: int) |
| String | get_pid_state(pid: int) |
| int | get_pid_property_int(pid: int, key: String) |
| Dictionary | get_pid_status(pid: int) |
| Dictionary[String, String] | get_pid_environment(pid: int) |
| PackedInt64Array | get_pids() |
| Array | pstree(pid: int) |
| bool | is_gamescope_pid(pid: int) |
| Array | to_int_array(arr: Array) |
Method Descriptions
create_process()
int create_process(cmd: String, args: PackedStringArray, app_id: int = -1)
Spawn a process with PR_SET_CHILD_SUBREAPER set so child processes will reparent themselves to OpenGamepadUI. Returns the PID of the spawned process.
get_reaper_command()
String get_reaper_command()
Discovers the 'reaper' binary to execute commands with PR_SET_CHILD_SUBREAPER.
reap()
void reap(pid: int, sig: int = 15)
Note
There is currently no description for this method. Please help us by contributing one!
get_children_with_pgid()
Array get_children_with_pgid(pid: int, pgid: int)
Note
There is currently no description for this method. Please help us by contributing one!
get_parent_pid()
Note
There is currently no description for this method. Please help us by contributing one!
get_pid_group()
Note
There is currently no description for this method. Please help us by contributing one!
get_pid_state()
String get_pid_state(pid: int)
Note
There is currently no description for this method. Please help us by contributing one!
get_pid_property_int()
int get_pid_property_int(pid: int, key: String)
Note
There is currently no description for this method. Please help us by contributing one!
get_pid_status()
Dictionary get_pid_status(pid: int)
Note
There is currently no description for this method. Please help us by contributing one!
get_pid_environment()
Dictionary[String, String] get_pid_environment(pid: int)
Returns the parsed environment for the given PID. Returns an empty dictionary if the PID is not found or we do not have permission to read the environment.
get_pids()
PackedInt64Array get_pids()
Returns a list of all currently running processes
pstree()
Note
There is currently no description for this method. Please help us by contributing one!
is_gamescope_pid()
bool is_gamescope_pid(pid: int)
Note
There is currently no description for this method. Please help us by contributing one!
to_int_array()
Array to_int_array(arr: Array)
Note
There is currently no description for this method. Please help us by contributing one!