pub fn kill_process(pid: u32, force: bool) -> Result<()>Expand description
Send a signal to a process.
force = false→ SIGTERM (graceful shutdown)force = true→ SIGKILL (immediate kill)
Returns an error if the process no longer exists or the signal fails.