diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-06-23 17:10:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-06-23 17:10:18 +0000 |
commit | 3c76bd9257081e6cbbaecf5bcb57cec64b0a6d31 (patch) | |
tree | b0b7c2314956f85f7d719076c18e235f58fe1484 /libgo/go | |
parent | bb96aa6726d1fac7e2500ef37d1193eed00b03f1 (diff) | |
download | gcc-3c76bd9257081e6cbbaecf5bcb57cec64b0a6d31.zip gcc-3c76bd9257081e6cbbaecf5bcb57cec64b0a6d31.tar.gz gcc-3c76bd9257081e6cbbaecf5bcb57cec64b0a6d31.tar.bz2 |
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
From-SVN: r249599
Diffstat (limited to 'libgo/go')
-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 653fce9..3337395 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) |