diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-06-23 17:12:32 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-06-23 17:12:32 +0000 |
commit | a240901b8d24781e56c1c067f27819e5415e1398 (patch) | |
tree | 7295a1e5d45a738376129886aa08d884bb3a6168 | |
parent | c144f82e2890e236aa1602081ca9d8d15db2c71e (diff) | |
download | gcc-a240901b8d24781e56c1c067f27819e5415e1398.tar.gz |
os: align siginfo argument to waitid
Backport https://golang.org/cl/46511 from gc trunk, as it may fix a
bug reported for gccgo running on MIPS
(https://groups.google.com/d/msg/golang-dev/sDg-t1_DPw0/-AJmLxgPBQAJ).
Reviewed-on: https://go-review.googlesource.com/46571
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@249600 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libgo/go/os/wait_waitid.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/os/wait_waitid.go b/libgo/go/os/wait_waitid.go index 653fce92532..3337395510e 100644 --- a/libgo/go/os/wait_waitid.go +++ b/libgo/go/os/wait_waitid.go @@ -23,7 +23,7 @@ func (p *Process) blockUntilWaitable() (bool, error) { // On Darwin, it requires greater than or equal to 64 bytes // for darwin/{386,arm} and 104 bytes for darwin/amd64. // We don't care about the values it returns. - var siginfo [128]byte + var siginfo [16]uint64 psig := &siginfo[0] _, _, e := syscall.Syscall6(syscall.SYS_WAITID, _P_PID, uintptr(p.Pid), uintptr(unsafe.Pointer(psig)), syscall.WEXITED|syscall.WNOWAIT, 0, 0) runtime.KeepAlive(p) |