Files
gitea/modules/process/command_windows.go
T
2026-08-29 19:54:07 +00:00

20 lines
402 B
Go

// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package process
import "os/exec"
// There is no graceful way to kill a process on Windows at the moment
func setSysProcAttribute(cmd *exec.Cmd) {}
func (c *Cmd) onCancel() error {
if c.onCancelUserFunc != nil {
if err := c.onCancelUserFunc(); err != nil {
return err
}
}
return c.Process.Kill()
}