diff options
author | Ian Lance Taylor <iant@golang.org> | 2023-03-17 13:30:22 -0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-05-12 21:33:26 +0000 |
commit | 719e2b6f0991f89702a86d46bead2b23efc82aa7 (patch) | |
tree | 0fb02ab3907eaaccd2f383684fa18b1aa01cc912 /src/os | |
parent | 3e19dc2b237339420fc7e97a2766710a68ac29c2 (diff) | |
download | go-git-719e2b6f0991f89702a86d46bead2b23efc82aa7.tar.gz |
os, runtime: remove unused implementations of os.sigpipe
Clean up instances that are unused since CL 6450058.
Change-Id: I0e9ae28cfa83fcc8abda8f5eca9c7dfc2c1c4ad1
Reviewed-on: https://go-review.googlesource.com/c/go/+/477396
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Bypass: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/file_posix.go | 2 | ||||
-rw-r--r-- | src/os/file_unix.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/os/file_posix.go b/src/os/file_posix.go index e06ab1b7b9..5692657753 100644 --- a/src/os/file_posix.go +++ b/src/os/file_posix.go @@ -12,8 +12,6 @@ import ( "time" ) -func sigpipe() // implemented in package runtime - // Close closes the File, rendering it unusable for I/O. // On files that support SetDeadline, any pending I/O operations will // be canceled and return immediately with an ErrClosed error. diff --git a/src/os/file_unix.go b/src/os/file_unix.go index f0e5d3cd4f..f7f942f5f5 100644 --- a/src/os/file_unix.go +++ b/src/os/file_unix.go @@ -210,6 +210,8 @@ func newFile(fd uintptr, name string, kind newFileKind) *File { return f } +func sigpipe() // implemented in package runtime + // epipecheck raises SIGPIPE if we get an EPIPE error on standard // output or standard error. See the SIGPIPE docs in os/signal, and // issue 11845. |