PR go/86331
commit770f6f2a920e78ea94b6aedb1b9d82002f98f293
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Jul 2018 16:28:43 +0000 (2 16:28 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Jul 2018 16:28:43 +0000 (2 16:28 +0000)
treea4a2df0f6300e9b015628e22a0fe093e880ef8d2
parent83d1ca630cf5c2198b7b3b283ca3b035b6662b1f
PR go/86331
    os: check return value as well as error from waitid

    https://gcc.gnu.org/PR86331 indicates that if a signal handler runs it
    is possible for syscall.Syscall6 to return a non-zero errno value even
    if no error occurs. That is a problem in general, but this fix will
    let us work around the general problem for the specific case of
    calling waitid.

    Reviewed-on: https://go-review.googlesource.com/121595

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262313 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/go/os/wait_waitid.go