diff options
| author | Clément Chigot <clement.chigot@atos.net> | 2019-03-25 10:34:57 +0100 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2019-04-02 16:03:24 +0000 |
| commit | 3aacfce6cf7e5f0346906e5236433852f4075368 (patch) | |
| tree | b10b2a53bdadfeaf2afc60e2a1e5c018112a319b /src/runtime/os_aix.go | |
| parent | 56517216c052649daab6c439f386f9dc02e90c3a (diff) | |
| download | go-3aacfce6cf7e5f0346906e5236433852f4075368.tar.xz | |
runtime, cmd/dist, misc/cgo: enable c-archive for aix/ppc64
Change-Id: Ib9a40d5596f5735a00483e2d2db965402f05671b
Reviewed-on: https://go-review.googlesource.com/c/go/+/169120
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/os_aix.go')
| -rw-r--r-- | src/runtime/os_aix.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/os_aix.go b/src/runtime/os_aix.go index faec9ac113..197869f989 100644 --- a/src/runtime/os_aix.go +++ b/src/runtime/os_aix.go @@ -296,7 +296,15 @@ func setSignalstackSP(s *stackt, sp uintptr) { *(*uintptr)(unsafe.Pointer(&s.ss_sp)) = sp } +//go:nosplit func (c *sigctxt) fixsigcode(sig uint32) { + switch sig { + case _SIGPIPE: + // For SIGPIPE, c.sigcode() isn't set to _SI_USER as on Linux. + // Therefore, raisebadsignal won't raise SIGPIPE again if + // it was deliver in a non-Go thread. + c.set_sigcode(_SI_USER) + } } //go:nosplit |
