signal-child

Crates.iosignal-child
lib.rssignal-child
version1.0.5
sourcesrc
created_at2021-06-03 23:30:30.522491
updated_at2022-02-03 17:20:36.98545
descriptionA little library to easily signal other process with no dependencies
homepage
repositoryhttps://git.sr.ht/~zethra/signal-child/
max_upload_size
id405892
size18,013
(gaykitty)

documentation

https://docs.rs/signal-child

README

signal-child

crates.io docs.rs Minimum Supported Rust Version

A little library to easily signal other process with no dependencies on 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");
// Sing SIGINT to the child.
child.interrupt().expect("Error interrupting child");

Contributing

Please send any and all patches, bugs, and questions to my public inbox ~zethra/public-inbox@lists.sr.ht

Commit count: 0

cargo fmt