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: Pipe does not work on Darwin #43498
Comments
Yikes, looks like this never worked. The Fortunately I don't think we use The corresponding x/sys/unix change to https://golang.org/cl/141639 was https://golang.org/cl/154179 It should be easy to keep supporting 1.12. There are separate files for <=1.12 and >1.12 support. |
1.12 is actually when we cut over to libc system calls. So only <= 1.11 support would still need support for raw system calls. |
Change https://golang.org/cl/281432 mentions this issue: |
Change https://golang.org/cl/280622 mentions this issue: |
> Those methods [...] must be called only from the goroutine running the > Test function. For golang/go#43498 Change-Id: I847067936ade613a21b059c90219bd285425f0aa Reviewed-on: https://go-review.googlesource.com/c/sys/+/280622 Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Trust: Ian Lance Taylor <iant@golang.org>
The x/sys/unix
Pipe
implementation is incorrect on Darwin. The x/sys/unix package needs a change along the lines of the change to syscall/syscall_darwin.go in https://golang.org/cl/141639. Unfortunately, it may have to be more complicated if we want to continue supporting Go 1.12 in the x/sys/unix package, as for 1.12 we should probably use the existing version ofPipe
.CC @randall77
The text was updated successfully, but these errors were encountered: