-
Notifications
You must be signed in to change notification settings - Fork 62
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
Remove syscall.Dup2() support. #492
Conversation
This is a breaking change, but it is time to rip the bandaid off. `syscall.Dup2()` will never be merged upstream[1]. Software depending on `syscall.Dup2()` needs to move to use `unix.Dup2()`. [1] https://docs.google.com/document/d/1QXzI9I1pOfZPujQzxhyRy6EeHYTQitKKjHfpq0zpxZs/edit [2] https://godoc.org/golang.org/x/sys/unix#Dup2
I think L89-90 of |
…syscall` package.
Good catch, PR updated. |
I committed this change to lang/go on trunk now. |
At least the Go packages that pkgsrc has are fine with this. |
…ing unix.Dup2() instead. https://github.com/joyent/pkgsrc/pull/492 * Improve handling of low-memory situations on Illumos. https://github.com/joyent/pkgsrc/pull/493
…ing unix.Dup2() instead. https://github.com/joyent/pkgsrc/pull/492 * Improve handling of low-memory situations on Illumos. https://github.com/joyent/pkgsrc/pull/493
The updated go-1.8.1nb2 package just landed in 2016Q4, though the mirrors might take an hour or so to synchronize. |
lang/go: bugfix Revisions pulled up: - lang/go/Makefile 1.51 - lang/go/distinfo 1.47 - lang/go/patches/patch-src_runtime_mem__bsd.go 1.1 - lang/go/patches/patch-src_syscall_syscall__solaris.go deleted --- Module Name: pkgsrc Committed By: fhajny Date: Tue May 2 17:15:31 UTC 2017 Modified Files: pkgsrc/lang/go: Makefile distinfo Added Files: pkgsrc/lang/go/patches: patch-src_runtime_mem__bsd.go Removed Files: pkgsrc/lang/go/patches: patch-src_syscall_syscall__solaris.go Log Message: * Remove patch adding syscall.Dup2() for SunOS, software should be using unix.Dup2() instead. https://github.com/joyent/pkgsrc/pull/492 * Improve handling of low-memory situations on Illumos. https://github.com/joyent/pkgsrc/pull/493
lang/go: bugfix Revisions pulled up: - lang/go/Makefile 1.51 - lang/go/distinfo 1.47 - lang/go/patches/patch-src_runtime_mem__bsd.go 1.1 - lang/go/patches/patch-src_syscall_syscall__solaris.go deleted --- Module Name: pkgsrc Committed By: fhajny Date: Tue May 2 17:15:31 UTC 2017 Modified Files: pkgsrc/lang/go: Makefile distinfo Added Files: pkgsrc/lang/go/patches: patch-src_runtime_mem__bsd.go Removed Files: pkgsrc/lang/go/patches: patch-src_syscall_syscall__solaris.go Log Message: * Remove patch adding syscall.Dup2() for SunOS, software should be using unix.Dup2() instead. https://github.com/joyent/pkgsrc/pull/492 * Improve handling of low-memory situations on Illumos. https://github.com/joyent/pkgsrc/pull/493
lang/go: bugfix Revisions pulled up: - lang/go/Makefile 1.51 - lang/go/distinfo 1.47 - lang/go/patches/patch-src_runtime_mem__bsd.go 1.1 - lang/go/patches/patch-src_syscall_syscall__solaris.go deleted --- Module Name: pkgsrc Committed By: fhajny Date: Tue May 2 17:15:31 UTC 2017 Modified Files: pkgsrc/lang/go: Makefile distinfo Added Files: pkgsrc/lang/go/patches: patch-src_runtime_mem__bsd.go Removed Files: pkgsrc/lang/go/patches: patch-src_syscall_syscall__solaris.go Log Message: * Remove patch adding syscall.Dup2() for SunOS, software should be using unix.Dup2() instead. https://github.com/joyent/pkgsrc/pull/492 * Improve handling of low-memory situations on Illumos. https://github.com/joyent/pkgsrc/pull/493
lang/go: bugfix Revisions pulled up: - lang/go/Makefile 1.51 - lang/go/distinfo 1.47 - lang/go/patches/patch-src_runtime_mem__bsd.go 1.1 - lang/go/patches/patch-src_syscall_syscall__solaris.go deleted --- Module Name: pkgsrc Committed By: fhajny Date: Tue May 2 17:15:31 UTC 2017 Modified Files: pkgsrc/lang/go: Makefile distinfo Added Files: pkgsrc/lang/go/patches: patch-src_runtime_mem__bsd.go Removed Files: pkgsrc/lang/go/patches: patch-src_syscall_syscall__solaris.go Log Message: * Remove patch adding syscall.Dup2() for SunOS, software should be using unix.Dup2() instead. https://github.com/joyent/pkgsrc/pull/492 * Improve handling of low-memory situations on Illumos. https://github.com/joyent/pkgsrc/pull/493
This is a breaking change, but it is time to rip the bandaid off.
syscall.Dup2()
will never be merged upstream[1]. Software depending onsyscall.Dup2()
needs to move to useunix.Dup2()
.[1] https://docs.google.com/document/d/1QXzI9I1pOfZPujQzxhyRy6EeHYTQitKKjHfpq0zpxZs/edit
[2] https://godoc.org/golang.org/x/sys/unix#Dup2