重构前最后一份代码(bug较多,请勿使用)

This commit is contained in:
2026-08-07 19:02:44 +08:00
parent fafe07baf8
commit 5bce105bd6
9 changed files with 199 additions and 341 deletions
+12
View File
@@ -0,0 +1,12 @@
//go:build !linux
package main
import (
"os/exec"
)
// setProcessAttributes 非 Linux 平台 (Windows/macOS) 不做特殊设置
func setProcessAttributes(cmd *exec.Cmd) {
// 非 Linux 平台不需要 Setpgid
}