From 6ca71fb8975294122501f722c5409a675a943ff2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 15 Apr 2011 00:01:29 -0400 Subject: [PATCH] os: turn EPIPE exit into panic R=iant, r2 CC=golang-dev https://golang.org/cl/4427042 --- src/pkg/os/file_posix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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