Expand description
Process-related operational helpers (PID liveness, signals). Process-related operational helpers.
Platform support
- Unix: uses
kill(2). - Non-Unix: signaling APIs are best-effort no-ops.
Contracts
crate::process::pid_is_aliveis a best-effort probe and can race with process exit.- On Unix,
EPERMis treated as “alive” forpid_is_alive.
Enums§
- Signal
- A process signal that can be sent via
send_signal.
Functions§
- install_
sigint_ stop_ flag - Install a best-effort SIGINT (Ctrl-C) handler that sets
stoptotrue. - pid_
is_ alive - Best-effort check whether a PID exists.
- send_
signal - Send a Unix signal to the given PID.
- signal_
kill - Convenience wrapper for
SIGKILL. - signal_
term - Convenience wrapper for
SIGTERM.