mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
35ac194557
commit
647dc1afc5
2 changed files with 0 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue