Skip to content

Commit

Permalink
Auto merge of #114848 - michaelvanstraten:spawn_with_attributes, r=Ch…
Browse files Browse the repository at this point in the history
…risDenton

Add ability to spawn Windows process with Proc Thread Attributes | Take 2

This is the second attempt to merge pull request #88193 into the standard library.

This PR implements the ability to add arbitrary attributes to a command on Windows targets using a new `raw_attribute` method on the [`CommandExt`](https://doc.rust-lang.org/stable/std/os/windows/process/trait.CommandExt.html) trait.

`@TyPR124` and my main motivation behind adding this feature is to enable the support of pseudo terminals in the std library, but there are many more applications. A good starting point to get into this topic is to head over to the [`Win32 API documentation`](https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-updateprocthreadattribute).
  • Loading branch information
bors committed Aug 28, 2023
2 parents f7eb5c8 + 003db5c commit 8b3243c
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 8b3243c

Please sign in to comment.