Module process

Module process 

Source
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_alive is a best-effort probe and can race with process exit.
  • On Unix, EPERM is treated as “alive” for pid_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 stop to true.
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.