public class ProcessHandle implements AutoClosable
A stable OS process reference with explicitly requested rights. close releases the reference and NEVER kills the process. Native finalization is a fallback; deterministic try-with-resources is preferred.
try task = Process.open(row.identity, [ProcessAccess.WAIT]): task.waitForExit(100ul)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | identityidentity as ProcessIdentity |
No summary. |
| public readonly property | isRunningisRunning as Boolean |
Nonblocking lifecycle query; requires QUERY or WAIT. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void |
Releases native ownership, never kills; idempotent and finalizer-safe. |
| public | getPrioritygetPriority() as ProcessPriority |
Reads the portable priority class; requires QUERY. |
| public | killkill() as Void |
Forcibly terminates this instance only, with no implicit descendant kill. |
| public | requestExitrequestExit() as Void |
Requests exit through the OS mechanism (SIGTERM on Linux). |
| public | sendSignalsendSignal(number as Int) as Void |
Sends a signal to this verified process instance, without descendants. |
| public | setPrioritysetPriority(notnull priority as ProcessPriority) as Void |
Changes priority; requires SET_PRIORITY and any OS elevation needed. |
| public | tryGetExitCode | Reads exit status if available; false leaves code unchanged. |
| public | waitForExit | Waits for exit; milliseconds, 0 means infinite. |