runtime: fix linker error: os.sigpipe

Этот коммит содержится в:
Ayke van Laethem 2018-10-20 18:37:15 +02:00
родитель 0a06c6014d
коммит ad06ed46cd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: E97FF5335DFDFDED

Просмотреть файл

@ -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")
}