Add files via upload

This commit is contained in:
公明 authored and GitHub committed 2026-05-12 12:56:11 +08:00
1 parent 2e1e57ce27
commit cae3a77331
4 files changed
+120 -14

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
//go:build windows
package security
import "os/exec"
func prepareShellCmdSession(cmd *exec.Cmd) error {
_ = cmd
return nil
}
func terminateCmdTree(cmd *exec.Cmd) {
if cmd == nil || cmd.Process == nil {
return
}
_ = cmd.Process.Kill()
}