mirror of
https://github.com/golang/go
synced 2024-09-30 08:28:34 -06:00
os: align siginfo argument to waitid
I have no test case for this, but there is one report on the mailing list (https://groups.google.com/d/msg/golang-dev/sDg-t1_DPw0/-AJmLxgPBQAJ) in which waitid running on MIPS returns EFAULT. Change-Id: I79bde63c7427eefc1f2925d78d97cc9cf2fffde3 Reviewed-on: https://go-review.googlesource.com/46511 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
c23948a2b8
commit
ddeab53826
@ -26,7 +26,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)
|
||||
|
Loading…
Reference in New Issue
Block a user