os, syscall: Seek on pipe on windows doesn't return ESPIPE #20066
Labels
Milestone
Comments
It's hard to get too excited about this, since we made up EPIPE anyhow for Windows. But if you want to send a patch I suppose it's OK with me. |
CL https://golang.org/cl/41311 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
According to http://pubs.opengroup.org/onlinepubs/009695399/functions/lseek.html:
lseek returns ESPIPE on pipe.
However, current implementation use EPIPE instead.
go/src/syscall/syscall_windows.go
Lines 350 to 352 in eaa198f
What did you expect to see?
ESPIPE
What did you see instead?
EPIPE
The text was updated successfully, but these errors were encountered: