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 passing named pipes in stdio #277

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

jsturtevant
Copy link
Contributor

@jsturtevant jsturtevant commented Aug 25, 2023

Containerd passes STDIO as named pipes on windows. The stdio implementation with libc::dup2([f.as](http://f.as/)_raw_fd(), $fd) } would error with invalid handle was specified.

This checks if it starts with the standard named_pipe path and adds the appropriate openoptions.

Cargo.toml Outdated Show resolved Hide resolved
Copy link
Collaborator

@jprendes jprendes left a comment

Choose a reason for hiding this comment

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

LGTM! modulo getting CI passing.

@jsturtevant jsturtevant force-pushed the support-pipes-windows branch from 92f8d3e to 823a067 Compare August 25, 2023 20:36
@jprendes
Copy link
Collaborator

Thanks for fixing this @jsturtevant .
Also, TIL. https://xkcd.com/1053/

Signed-off-by: James Sturtevant <[email protected]>
Signed-off-by: James Sturtevant <[email protected]>
Signed-off-by: James Sturtevant <[email protected]>
@jsturtevant jsturtevant force-pushed the support-pipes-windows branch from 823a067 to b6f2b1a Compare August 25, 2023 21:13
@Mossaka Mossaka merged commit d86d97e into containerd:main Aug 25, 2023
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