diff --git a/src/pkg/os/file_posix.go b/src/pkg/os/file_posix.go index 5151df49873..7d96818b7f6 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