pkg/pidfile: replace uses of windows.Close() with windows.CloseHandle()

Since https://golang.org/cl/4600042, Close is a straight wrapper of CloseHandle.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-10-09 13:27:58 +02:00
parent 89de943401
commit a35bcd01c5
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ func processExists(pid int) bool {
}
var c uint32
err = windows.GetExitCodeProcess(h, &c)
windows.Close(h)
_ = windows.CloseHandle(h)
if err != nil {
// From the GetExitCodeProcess function (processthreadsapi.h) API docs:
// https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getexitcodeprocess