mirror of https://github.com/golang/go.git
os: turn EPIPE exit into panic
R=iant, r2 CC=golang-dev https://golang.org/cl/4427042
This commit is contained in:
parent
29cf90a4ef
commit
6ca71fb897
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue