[][src]Function interprocess::os::unix::signal::send_to_group

pub fn send_to_group(
    signal: impl Into<Option<SignalType>>,
    pid: impl Into<u32>
) -> Result<()>

Sends the specified signal to the specified process group. If the specified signal is None, no signal is sent and only a privilege check is performed instead.

Example

use interprocess::os::unix::signal::{self, SignalType};
use std::process;

// Send a Termination signal to the process group of the calling process.
signal::send_to_group(SignalType::Termination, 0_u32)?;