From: Russ Cox Date: Fri, 15 Apr 2011 04:01:29 +0000 (-0400) Subject: os: turn EPIPE exit into panic X-Git-Tag: weekly.2011-04-27~143 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6ca71fb8975294122501f722c5409a675a943ff2;p=gostls13.git os: turn EPIPE exit into panic R=iant, r2 CC=golang-dev https://golang.org/cl/4427042 --- diff --git a/src/pkg/os/file_posix.go b/src/pkg/os/file_posix.go index 5151df4987..7d96818b7f 100644 --- a/src/pkg/os/file_posix.go +++ b/src/pkg/os/file_posix.go @@ -14,7 +14,7 @@ func epipecheck(file *File, e int) { if e == syscall.EPIPE { file.nepipe++ if file.nepipe >= 10 { - Exit(syscall.EPIPE) + panic("os.File Write: caller keeps writing after too many EPIPE errors") } } else { file.nepipe = 0