Handle known TerminateProcess "failure" case
If a process has already gone away when you call TerminateProcess then TerminateProcess will fail with error code 5. This seems unintuitive to me and the resulting error spew when running tests can be misleading. This change avoids printing the message when GetLastError() is ERROR_ACCESS_DENIED to avoids the spuriuos debug spew. This was noticed while investigating crbug.com/861730 Change-Id: I869073bd3c6b0c00ceeee7d7f1139e3091e3a1cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1662974 Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Reviewed-by:Brian White <bcwhite@chromium.org> Cr-Commit-Position: refs/heads/master@{#670279}
Showing
Please register or sign in to comment