-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Tracking Issue for Windows' CommandExt::inherit_handles #146407
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCO-windowsOperating system: WindowsOperating system: WindowsS-tracking-needs-to-bakeStatus: The implementation is "complete" but it needs time to bake.Status: The implementation is "complete" but it needs time to bake.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.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCO-windowsOperating system: WindowsOperating system: WindowsS-tracking-needs-to-bakeStatus: The implementation is "complete" but it needs time to bake.Status: The implementation is "complete" but it needs time to bake.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(windows_process_extensions_inherit_handles)]This is a tracking issue for a new
inherit_handlesbuilder method of the Windows-specificCommandExtextension trait.In short, it will add the ability to configure the
bInheritHandlesparameter of theCreateProcessWfunction used in order to perform the process spawns under Windows. Indeed, it is currently always set toTRUEwhile all the other parameters already are customizable at least in part. However, under certain circumstances such as when spawning a process with apseudoconsoleattached or when spawning non-PPL processes from a PPL one, either the intended behavior will not work or simply the function call will directly fail. The proposed API will therefore enable one to use the standardprocess::Commandand its Windows extension trait in a fashion compatible with these use cases.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩