Open
Description
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<()>;
}
impl ChildExt for std::process::Child { /* ... */ }
Steps / History
(Remember to update the S-tracking-*
label when checking boxes.)
- ACP: Add
interrupt
function tostd::process::Child
libs-team#97 - Incomplete implementation Added
interrupt
function forstd::process::Child
#101387 - Implementation: #...
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Should the signal be an
i32
or an enum? Should we provide someSIG*
constants so the user doesn't have to depend onlibc
? See discussion at the ACP Addinterrupt
function tostd::process::Child
libs-team#97 - Is there some reason our preexisting internal implementation took
&mut
? See discussion at Implement send_signal for unix child processes #141990.