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

support more process creation options on Windows #23053

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

marler8997
Copy link
Contributor

Adds a CreateProcessFlags packed struct for all the possible flags to CreateProcessW on windows. In addition, propagates the existing start_suspended option in std.process.Child which was previously only used on Darwin. Also adds a create_no_window option to std.process.Child which is a commonly used flag for launching console executables on windows without causing a new console window to "pop up".

@marler8997 marler8997 marked this pull request as ready for review March 3, 2025 06:10
Adds a CreateProcessFlags packed struct for all the possible flags to
CreateProcessW on windows.  In addition, propagates the existing
`start_suspended` option in std.process.Child which was previously only
used on Darwin.  Also adds a `create_no_window` option to std.process.Child
which is a commonly used flag for launching console executables on
windows without causing a new console window to "pop up".
@marler8997 marler8997 force-pushed the windowsCreateProcessOptions branch from 0ba1c4a to 4835b7c Compare March 3, 2025 16:22
@alexrp alexrp requested a review from squeek502 March 24, 2025 14:45
Copy link
Collaborator

@squeek502 squeek502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related: #20876 (the approach here will integrate nicely with it)

@alexrp alexrp merged commit 1408288 into ziglang:master Mar 25, 2025
9 checks passed
@marler8997 marler8997 deleted the windowsCreateProcessOptions branch March 27, 2025 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants