-
Notifications
You must be signed in to change notification settings - Fork 18k
os: io.Copy(net.Conn, os.Stdin) on MacOS terminate immediately without waiting for input [1.23 backport] #70789
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
Labels
CherryPickApproved
Used during the release process for point releases
Milestone
Comments
Change https://go.dev/cl/635397 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Dec 18, 2024
…handle EOPNOTSUPP/ENOTSUP This is not a cherry pick, because the code has changed on tip. For #70763 Fixes #70789 Change-Id: If9fcfee17e86a746cf8c72293dc34f80b430f6e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/635397 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
yangjuncode
pushed a commit
to yangjuncode/go
that referenced
this issue
Dec 27, 2024
…handle EOPNOTSUPP/ENOTSUP This is not a cherry pick, because the code has changed on tip. For golang#70763 Fixes golang#70789 Change-Id: If9fcfee17e86a746cf8c72293dc34f80b430f6e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/635397 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
mpminardi
pushed a commit
to tailscale/go
that referenced
this issue
Jan 28, 2025
…handle EOPNOTSUPP/ENOTSUP This is not a cherry pick, because the code has changed on tip. For golang#70763 Fixes golang#70789 Change-Id: If9fcfee17e86a746cf8c72293dc34f80b430f6e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/635397 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
For the record, in Go 1.24, package main
import (
"bytes"
"io"
"os"
"testing"
)
func TestCopyStdin(t *testing.T) {
var b bytes.Buffer
// NOTE: The io.Copy call returns immediately.
_, err := io.Copy(&b, os.Stdin)
if err != nil {
t.Fatal(err)
}
t.Log(b.String())
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ianlancetaylor requested issue #70763 to be considered for backport to the next 1.23 minor release.
The text was updated successfully, but these errors were encountered: