Crate signal_child[−][src]
Expand description
A little library to easily signal other process with no dependencies.
This is essentially a wrapper around kill(3)
on Unix-like systems. As such
this crate only supports Unix-like systems.
Example
use std::process::Command; use signal_child::Signalable; // Spawn child process let mut child = Command::new("sleep") .arg("1000") .spawn() .expect("Error spawning sleep process"); // Send SIGINT to the child. child.interrupt().expect("Error interrupting child"); child.wait().ok();
Modules
signal | Signals that can be sent to processes |
Structs
InvalidSignal | Error returned when an ivalid signal value is used |
Traits
Signalable | Trait for things that can be signaled, mainly |
Functions
signal | Signal the process |