pub fn process_alive(pid: u32) -> Result<bool>Expand description
Returns true if a process with this PID is running and visible to us.
Unix: kill(pid, 0) — 0 means alive, ESRCH means gone, EPERM means alive
but owned by another uid (still “alive” for our purposes).
Non-Unix builds always return Ok(false) — the daemon command path is
gated behind #[cfg(unix)], so this branch is unreachable in practice but
keeps the module compilable on Windows.