Skip to content

exclude OpenFifoDup2() on Windows#36

Merged
dmcgowan merged 1 commit intocontainerd:masterfrom
thaJeztah:fix_non_unix
Mar 25, 2021
Merged

exclude OpenFifoDup2() on Windows#36
dmcgowan merged 1 commit intocontainerd:masterfrom
thaJeztah:fix_non_unix

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Commit 9c214ed (#28) updated this function, and replaced syscall.Dup2() for golang.org/x/sys/unix.Dup2(), which is not available on Windows.

This patch splits the API from the implementation, and moves the unix implementation to a "unix" file; as stub is added for Windows.

Commit 9c214ed updated this function, and
replaced syscall.Dup2() for golang.org/x/sys/unix.Dup2(), which is not
available on Windows.

This patch splits the API from the implementation, and moves the unix
implementation to a "unix" file; a stub is added for Windows.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member Author

@thaJeztah
Copy link
Copy Markdown
Member Author

Also opened a draft to run linters on macOS and Windows so that we can catch these; #38 (will rebase after this is merged)

@dmcgowan dmcgowan merged commit 8814b01 into containerd:master Mar 25, 2021
@thaJeztah thaJeztah deleted the fix_non_unix branch March 25, 2021 15:03
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.

4 participants