Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: retry fetching of lists through sysctl if the size changes
On macOS, the SysctlKinfoProcSlice() function may be used to fetch the contents of the process table. As the process table may grow between the first and second call to sysctl(), the second call may fail with ENOMEM. In that case we simply need to retry. Change-Id: I40229653ed383603c33762f37b0dc2e7de47bcb6 GitHub-Last-Rev: b63b6b8 GitHub-Pull-Request: #169 Reviewed-on: https://go-review.googlesource.com/c/sys/+/513036 Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
- Loading branch information