re PR go/86331 (the gccgo's "go" tool looks like failing to invoke any sub go command)
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 2 Jul 2018 16:28:43 +0000 (16:28 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 2 Jul 2018 16:28:43 +0000 (16:28 +0000)
commit7edd4c1885f4ecc31b80f157f7aa96ccd40d1075
treea4a2df0f6300e9b015628e22a0fe093e880ef8d2
parenta08acce83a052a8b800eddaaae36e51e8de57643
re PR go/86331 (the gccgo's "go" tool looks like failing to invoke any sub go command)

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

From-SVN: r262313
gcc/go/gofrontend/MERGE
libgo/go/os/wait_waitid.go