目录重构完成,但是Preview通道尚未可用
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
//go:build linux
|
||||
|
||||
package process
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// setProcessAttributes 设置 Linux 进程属性 (Setpgid)
|
||||
func setProcessAttributes(cmd *exec.Cmd) {
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{
|
||||
Setpgid: true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user