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

internal/remote: use unix.Dup2 instead of wrapping Dup2/Dup3 manually #761

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

tklauser
Copy link
Contributor

The latest version of the golang.org/x/sys/unix package already
implements func Dup2 using Dup3 on platforms which dont have the dup2
syscall. Use Dup2 and let x/sys/unix figure out the correct syscall.

This effectivly reverts PR #680. Verified that ginkgo still correctly
builds on linux/mips64le.

The latest version of the golang.org/x/sys/unix package already
implements func Dup2 using Dup3 on platforms which dont have the dup2
syscall. Use Dup2 and let x/sys/unix figure out the correct syscall.

This effectivly reverts PR onsi#680. Verified that ginkgo still correctly
builds on linux/mips64le.
@onsi
Copy link
Owner

onsi commented Jan 19, 2021

sweet! thank you :) this cleans things up nicely.

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.

2 participants