Feature gate: #![feature(unix_send_signal)]
This is a tracking issue for API to send a signal to a child process via libc kill.
Public API
// std::os::unix::process
pub trait ChildExt {
fn send_signal(&self, signal: i32) -> Result<()>;
fn send_process_group_signal(&self, signal: i32) -> io::Result<()>;
fn kill_process_group(&mut self) -> io::Result<()>;
}
impl ChildExt for std::process::Child { /* ... */ }
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(unix_send_signal)]This is a tracking issue for API to send a signal to a child process via libc
kill.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)interruptfunction tostd::process::Childlibs-team#97interruptfunction forstd::process::Child#101387Unresolved Questions
i32or an enum? Should we provide someSIG*constants so the user doesn't have to depend onlibc? See discussion at the ACP Addinterruptfunction tostd::process::Childlibs-team#97&mut? See discussion at Implement send_signal for unix child processes #141990.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩