-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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(command_pass_fds)]
This is a tracking issue for passing file descriptors in std::comand::Command with std::os::fd::CommandExt::fd.
Public API
// std::os::unix::process
pub trait CommandExt {
fn fd(&mut self, new_fd: RawFd, old_fd: impl Into<OwnedFd>);
}
impl CommandExt for std::process::Command { ... }Note: if a lifetime can be introduced to std::process::Command at any time in the future, we should make this use BorrowedFd.
Steps / History
- Feature request: [Feature request] Pass file descriptors in std::comand::Command #144191
- API change proposal: Pass file descriptors in std::comand::Command libs-team#623
(Remember to update the S-tracking-* label when checking boxes.)
- Implementation: None yet
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Whether to name the function
fdorpass_fd - Is this also available on
cfg(any(target_os = "hermit", target_os = "trusty", target_os = "wasi"))?
Footnotes
mousetail
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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.