21 lines
556 B
Go
21 lines
556 B
Go
//go:build windows
|
|
|
|
package windsurf
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
)
|
|
|
|
// attachProcessGroup is a no-op on Windows; we rely on Process.Kill() which
|
|
// maps to TerminateProcess and does not need a process-group hint.
|
|
func attachProcessGroup(cmd *exec.Cmd) {}
|
|
|
|
// terminateProcess kills the LS process immediately. os.Interrupt is a
|
|
// no-op on Windows (os/exec returns an error for it), so there is no
|
|
// graceful phase — go straight to TerminateProcess via Process.Kill().
|
|
func terminateProcess(p *os.Process, done <-chan struct{}) {
|
|
_ = p.Kill()
|
|
<-done
|
|
}
|