Skip to content

Tracking Issue for std::os::fd::CommandExt::fd #144989

@axelkar

Description

@axelkar

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

(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 or pass_fd
  • Is this also available on cfg(any(target_os = "hermit", target_os = "trusty", target_os = "wasi"))?

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions