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

windows support #1

Open
matu3ba opened this issue Feb 15, 2024 · 2 comments
Open

windows support #1

matu3ba opened this issue Feb 15, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@matu3ba
Copy link

matu3ba commented Feb 15, 2024

Not sure what is unclear to you from child_process.zig, so briefly starting the talk here.

  1. Windows only has named pipes, anonymous ones are silently also using named ones.
  2. Windows has flags for a pile of things, but using the CreateProcess ones for standard streams should be sufficient. Make sure you have inheritance enabled and you're using one of the (I think 4 or 5) working ways if necessary.
  3. Subsituting stdout works via https://stackoverflow.com/questions/54094127/redirecting-stdout-in-win32-does-not-redirect-stdout
  4. All the other Windows stuff is just as complex. You probably dont want to do the complete PATH dance, but that is up to you.
@liyu1981 liyu1981 self-assigned this Feb 16, 2024
@liyu1981
Copy link
Owner

thanks @matu3ba, I will spend some time to research this ;O

@liyu1981 liyu1981 added the enhancement New feature or request label Feb 16, 2024
@jcs090218
Copy link

Second this. Definitely need the windows support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants