Skip to main content

kill_process

Function kill_process 

Source
pub fn kill_process(pid: u32, force: bool) -> bool
Expand description

Signal a pid to exit. Returns true on successful dispatch (NOT on confirmed exit — poll process_alive for that). force=true is SIGKILL / taskkill /F; force=false is SIGTERM / taskkill (graceful).

Windows note: we pass /T so the whole process tree dies, not just the root. The daemon’s wire daemon invocation is single-process today but the relay-server spawns hyper worker threads; /T is the safe default.