Initial release — ATK Android Toolkit v1.0.0
This commit is contained in:
commit
f45c0991c5
53 changed files with 10445 additions and 0 deletions
17
sysproc_linux.go
Normal file
17
sysproc_linux.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
//go:build !windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// setCommandSysProcAttr sets platform-specific process attributes.
|
||||
// On Linux: sets a new process group so child processes don't receive
|
||||
// terminal signals meant for the parent, and enables proper cleanup.
|
||||
func setCommandSysProcAttr(cmd *exec.Cmd) {
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{
|
||||
Setpgid: true,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue