kill

Function kill 

Source
pub unsafe extern "system" fn kill(pid: pid_t, sig: c_int) -> c_int
Expand description

The kill() system call can be used to send any signal to any process group or process.

§RETURN VALUE

On success (at least one signal was sent), zero is returned. On error, -1 is returned, and errno is set to indicate the error.

§ERRORS

EINVAL(22), EPERM(1), ESRCH(3).

Read the docs here