commit | 94738979a3422e845acf358a766aabf8b9275d43 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Thu Jun 28 12:44:36 2018 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Jul 02 16:27:45 2018 +0000 |
tree | 99546a7b51076dc7322518730d331e3ba9b8b91e | |
parent | e1fcce0aec27b1f50ac0e736f39f4c806c2a5baa [diff] |
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. Change-Id: I3d9db9ea16b0256eba7f88962909f287db3a7955 Reviewed-on: https://go-review.googlesource.com/121595 Reviewed-by: Than McIntosh <thanm@google.com>