Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking Issue for stdio_makes_pipe #98288

Open
3 tasks
ChrisDenton opened this issue Jun 20, 2022 · 3 comments
Open
3 tasks

Tracking Issue for stdio_makes_pipe #98288

ChrisDenton opened this issue Jun 20, 2022 · 3 comments
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@ChrisDenton
Copy link
Member

ChrisDenton commented Jun 20, 2022

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

  • Bikeshedding the name. is_piped() has been suggested to match piped().
@ChrisDenton ChrisDenton added C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 20, 2022
@m-ou-se

This comment was marked as resolved.

@ChrisDenton

This comment was marked as resolved.

@m-ou-se

This comment was marked as resolved.

@ChrisDenton ChrisDenton added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. and removed T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants