]> Cypherpunks repositories - gostls13.git/commit
os: don't check for TTY before calling splice
authorIan Lance Taylor <iant@golang.org>
Thu, 16 Mar 2023 19:14:03 +0000 (12:14 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 16 Mar 2023 19:34:54 +0000 (19:34 +0000)
commit4f5859c0467a6e252e4705cd0086aaef6904e5a4
tree91f8d5eba8516106cab648ace4725f6c4882ed0e
parent964985362b4d8702a16bce08c7a825488ccb9601
os: don't check for TTY before calling splice

I think I confused myself in CL 476335. The TTY check did fix the
problem with os.Stdout, but it was still possible to get the same
problem in other ways. I fixed that by making the splice call blocking,
but it turns out that doing that is enough to fix the TTY problem also.
So we can just remove the TTY check.

Fixes #59041

Change-Id: I4d7ca9dad8361001edb4cfa96bb29b1badb54df0
Reviewed-on: https://go-review.googlesource.com/c/go/+/477035
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/os/readfrom_linux.go