rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
98.22k stars 12.7k forks source link

Tracking Issue for `stdio_makes_pipe` #98288

Open ChrisDenton opened 2 years ago

ChrisDenton commented 2 years ago

Feature gate: #![feature(stdio_makes_pipe)]

This is a tracking issue for the makes_pipe() method of std::process::Stdio.

Wrappers around std::process::Command may want to be able to override pipe creation. However, std::process::Stdio is opaque so without this method there's no way to tell if Command is being told to create new pipes or not.

Public API

// in std::process

impl Stdio {
     pub fn makes_pipe(&self) -> bool;
}

Steps / History

Unresolved Questions

m-ou-se commented 2 years ago

}

ChrisDenton commented 2 years ago

Oops!

m-ou-se commented 2 years ago

lol, now my } is broken again!