Commit 6ca71fb8 authored by Russ Cox's avatar Russ Cox

os: turn EPIPE exit into panic

R=iant, r2
CC=golang-dev
https://golang.org/cl/4427042
parent 29cf90a4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment