This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r262315 - /branches/gcc-7-branch/libgo/go/os/wa...
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 02 Jul 2018 16:29:25 -0000
- Subject: r262315 - /branches/gcc-7-branch/libgo/go/os/wa...
Author: ian
Date: Mon Jul 2 16:29:24 2018
New Revision: 262315
URL: https://gcc.gnu.org/viewcvs?rev=262315&root=gcc&view=rev
Log:
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
Modified:
branches/gcc-7-branch/libgo/go/os/wait_waitid.go