is_proc_alive

Function is_proc_alive 

Source
pub fn is_proc_alive(pid: u32) -> bool
Expand description

Check if a process with the given PID is alive.

§Arguments

  • pid - The process ID to check.

§Returns

true if the process is alive, false otherwise.

§Description

This function uses the POSIX kill system call with signal 0 to check if a process exists and the calling process has permission to send signals to it. It does not actually send a signal to the process.