Function killpg
fn killpg<T: Into<Option<Signal>>>(pgrp: Pid, signal: T) -> Result<()>
Send a signal to a process group
Arguments
pgrp- Process group to signal. If less then or equal 1, the behavior is platform-specific.signal- Signal to send. IfNone,killpgwill only preform error checking and won't send any signal.
See Also killpg(3).