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

implement std.Progress IPC for Windows #20105

Open
Tracked by #20059
andrewrk opened this issue May 29, 2024 · 0 comments
Open
Tracked by #20059

implement std.Progress IPC for Windows #20105

andrewrk opened this issue May 29, 2024 · 0 comments
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. enhancement Solving this issue will likely involve adding new logic or components to the codebase. os-windows standard library This issue involves writing Zig code for the standard library.
Milestone

Comments

@andrewrk
Copy link
Member

Extracted from #20059.

Currently, on Windows, std.Progress is implemented for the root process that owns the terminal, however it is not able to collect progress information from the child processes that it spawns.

This issue can be closed when child processes using std.Progress on Windows communicate their progress to parent processes.

A simple way to test this would be adapting this example to also work on Windows:

https://gist.github.com/andrewrk/b22b4f663cef6b4672d7097de95ea343

For POSIX systems this is implemented by a dedicated pipe file descriptor that is passed from parent to child, much like stdio streams. It should be possible to do something equivalent on Windows.

@andrewrk andrewrk added enhancement Solving this issue will likely involve adding new logic or components to the codebase. contributor friendly This issue is limited in scope and/or knowledge of Zig internals. standard library This issue involves writing Zig code for the standard library. os-windows labels May 29, 2024
@andrewrk andrewrk added this to the 0.14.0 milestone May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. enhancement Solving this issue will likely involve adding new logic or components to the codebase. os-windows standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant