Commit 0c75eb82 authored by LE Manh Cuong's avatar LE Manh Cuong Committed by Ian Lance Taylor

runtime: fix sigpipe do not check SIGPIPE was ignored

Fixes #32386

Change-Id: I29ad4113b02264336eebe7865895f07ef386f450
Reviewed-on: https://go-review.googlesource.com/c/go/+/180177
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent cbdf9ade
......@@ -268,7 +268,7 @@ func setThreadCPUProfiler(hz int32) {
}
func sigpipe() {
if sigsend(_SIGPIPE) {
if signal_ignored(_SIGPIPE) || sigsend(_SIGPIPE) {
return
}
dieFromSignal(_SIGPIPE)
......
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