Crates.io | signal-child |
lib.rs | signal-child |
version | 1.0.6 |
source | src |
created_at | 2021-06-03 23:30:30.522491 |
updated_at | 2024-08-31 22:00:44.822052 |
description | A little library to easily signal other process with no dependencies |
homepage | |
repository | https://git.sr.ht/~zethra/signal-child/ |
max_upload_size | |
id | 405892 |
size | 18,208 |
A little library to easily signal other process with no dependencies on Unix-like systems.
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");
// Sing SIGINT to the child.
child.interrupt().expect("Error interrupting child");
Please send any and all patches, bugs, and questions to my public inbox ~zethra/public-inbox@lists.sr.ht