/internal/storage/dolt: fix windows build issue

This commit is contained in:
Test
2026-01-21 13:59:47 -08:00
parent 0a9bcc2dd0
commit 7670112341
5 changed files with 91 additions and 27 deletions

View File

@@ -0,0 +1,21 @@
//go:build windows
// +build windows
package dolt
import "os"
func processMayBeAlive(p *os.Process) bool {
// Windows doesn't support Unix-style signal(0) checks. Treat as "unknown/alive"
// and let connection attempts / wait timeouts determine readiness.
_ = p
return true
}
func terminateProcess(p *os.Process) error {
if p == nil {
return nil
}
// Best-effort: Windows doesn't have SIGTERM semantics; kill the process.
return p.Kill()
}