aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/signal_unix.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2019-08-29 15:19:44 +0000
committerDaniel Martí <mvdan@mvdan.cc>2019-08-29 15:37:46 +0000
commit647dc1afc5932b0dbbc409727cc81def8e90a0c4 (patch)
tree1ed5a8f42553e8018a72a80e72892ba32c520f51 /src/runtime/signal_unix.go
parent35ac19455750198d797ff17a1d57922b92fc5f65 (diff)
downloadgo-647dc1afc5932b0dbbc409727cc81def8e90a0c4.tar.gz
go-647dc1afc5932b0dbbc409727cc81def8e90a0c4.zip
Revert "runtime: don't forward SIGPIPE on macOS"
This reverts CL 188297. Reason for revert: broke multiple of the darwin builders. Fixes #33943. Change-Id: Iacff98d1450edc70402dc7a220d16fcd73337c9e Reviewed-on: https://go-review.googlesource.com/c/go/+/191784 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/runtime/signal_unix.go')
-rw-r--r--src/runtime/signal_unix.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/runtime/signal_unix.go b/src/runtime/signal_unix.go
index 436c18c126..ad51dc1800 100644
--- a/src/runtime/signal_unix.go
+++ b/src/runtime/signal_unix.go
@@ -636,13 +636,6 @@ func sigfwdgo(sig uint32, info *siginfo, ctx unsafe.Pointer) bool {
return true
}
- // This function and its caller sigtrampgo assumes SIGPIPE is delivered on the
- // originating thread. This property does not hold on macOS (golang.org/issue/33384),
- // so we have no choice but to ignore SIGPIPE.
- if GOOS == "darwin" && sig == _SIGPIPE {
- return true
- }
-
// If there is no handler to forward to, no need to forward.
if fwdFn == _SIG_DFL {
return false