-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCO-unixOperating system: Unix-likeOperating system: Unix-likeT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
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
interruptfunction tostd::process::Childlibs-team#97 - Incomplete implementation Added
interruptfunction forstd::process::Child#101387 - Implementation: Implement send_signal for unix child processes #141990
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Should the signal be an
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 - Is there some reason our preexisting internal implementation took
&mut? See discussion at Implement send_signal for unix child processes #141990.
Footnotes
JonathanWoollett-Light
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCO-unixOperating system: Unix-likeOperating system: Unix-likeT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.