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
x/sys/unix: should support Dup2 on Solaris #17042
Comments
The syscall package is frozen. See the notes at https://golang.org/pkg/syscall/#pkg-overview But it doesn't look like it exists in golang.org/x/sys/unix either, so I'll repurpose this bug for that instead. |
Admittedly Can you send your patch as a change as described at https://golang.org/doc/contribute.html? If not, please don't send us patches in the issue tracker. It complicates the copyright history. Thanks. |
I've found that it's missing when tried to build mongo tools, which rely on https://github.com/spacemonkeygo/spacelog. And this one uses Dup2 |
The syscall package is frozen, please add it to x/sys/unix instead.
|
I already added Dup2 among others for Solaris in this commit to sys/unix in revision 68a71b6 for #8609: golang/sys@68a71b6 So the real answer is that spacelog should be using the sys/unix package instead of the syscall package. |
@pyhalov, please file a bug against https://github.com/spacemonkeygo/spacelog to ask them to use golang.org/x/sys/unix instead of the syscall package. That said, this is still a little sad for Solaris. |
Current go versions don't implement Dup2 for Solaris.
The fix is simple
The text was updated successfully, but these errors were encountered: