(fix): replace os.interrupt with reliable solution

This commit is contained in:
TheDevisi
2026-04-11 12:57:03 +03:00
parent 4a696d1002
commit ff2716a449

View File

@@ -51,7 +51,12 @@ func (p *Program) olcrtcStop() {
return
}
err := p.Cmd.Process.Signal(os.Interrupt)
var err error
if p.Config.Os == "windows" {
err = p.Cmd.Process.Kill()
} else {
err = p.Cmd.Process.Signal(os.Interrupt)
}
if err != nil {
log("ERROR: Failed to signal olcrtc: %v", err)
p.showError(err)