Tracking Issue for std::os::fd::CommandExt::fd (original) (raw)

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); }

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

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

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