mirror of
https://github.com/OliveTin/OliveTin
synced 2026-10-07 00:41:23 +00:00
* bugfix: Kill the process group, not just the parent process (#328), thanks @ioqy, @vvrein * bugfix: Kill the process group, not just the parent process (#328), thanks @ioqy, @vvrein * bugfix: Kill the process group, not just the parent process (#328), thanks @ioqy, @vvrein
18 lines
335 B
Go
18 lines
335 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package executor
|
|
|
|
import (
|
|
"context"
|
|
"os/exec"
|
|
)
|
|
|
|
func (e *Executor) Kill(execReq *InternalLogEntry) error {
|
|
return execReq.Process.Kill()
|
|
}
|
|
|
|
func wrapCommandInShell(ctx context.Context, finalParsedCommand string) *exec.Cmd {
|
|
return exec.CommandContext(ctx, "cmd", "/C", finalParsedCommand)
|
|
}
|