-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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::fd
pub trait CommandExt {
fn fd(&mut self, new_fd: RawFd, old_fd: impl Into<OwnedFd>);
}
#[cfg(unix)]
impl CommandExt for std::command::Command { ... }
Note: if a lifetime can be introduced to std::command::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
fd
orpass_fd
- Is this also available on
cfg(any(target_os = "hermit", target_os = "trusty", target_os = "wasi"))
?
Footnotes
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.