-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-processArea: `std::process` and `std::env`Area: `std::process` and `std::env`C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.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
I was reading bytecodealliance/rustix#100 (comment) and remembered that Rust's std doesn't have a way to pass (non-stdio) file descriptors to child processes.
I was wondering, could a way to do that be added into std::command::Command
?
I also propose these properties:
- Know the FD numbers before spawning, e.g. for the
LISTEN_FDS
environment variable. Maybe the user provides the FD numbers and the library usesdup2
? close_fds=True
(is this applicable? not sure how it's implemented in Python)
Prior work:
Metadata
Metadata
Assignees
Labels
A-processArea: `std::process` and `std::env`Area: `std::process` and `std::env`C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.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.