unix: retry fetching of lists through sysctl if the size changes#169
unix: retry fetching of lists through sysctl if the size changes#169EdSchouten wants to merge 1 commit intogolang:masterfrom
Conversation
|
This PR (HEAD: cdea1ad) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/513036. Important tips:
|
cdea1ad to
d319d1b
Compare
|
This PR (HEAD: d319d1b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/513036. Important tips:
|
|
Message from Ian Lance Taylor: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/513036. |
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.
d319d1b to
b63b6b8
Compare
|
This PR (HEAD: b63b6b8) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/513036. Important tips:
|
|
Message from Ed Schouten: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/513036. |
|
Message from Ian Lance Taylor: Patch Set 3: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/513036. |
|
Message from Gopher Robot: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/513036. |
|
Message from Gopher Robot: Patch Set 3: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/513036. |
|
Message from Ian Lance Taylor: Patch Set 3: Auto-Submit+1 Code-Review+2 Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/513036. |
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>
|
This PR is being closed because golang.org/cl/513036 has been merged. |
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.