From ad06ed46cd9ebf672e587236bd4af960eec05f1e Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sat, 20 Oct 2018 18:37:15 +0200 Subject: [PATCH] runtime: fix linker error: os.sigpipe --- src/runtime/runtime.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index 95176460..59af0729 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -95,3 +95,9 @@ func now() (sec int64, nsec int32, mono int64) { nsec = int32(mono - sec*(1000*1000*1000)) return } + +// Copied from the Go runtime source code. +//go:linkname os_sigpipe os.sigpipe +func os_sigpipe() { + runtimePanic("too many writes on closed pipe") +}