mirror of
https://github.com/volcengine/mediakit-cli.git
synced 2026-09-14 20:06:30 +08:00
12 lines
307 B
Go
12 lines
307 B
Go
//go:build !windows
|
|
|
|
package updatecheck
|
|
|
|
import "syscall"
|
|
|
|
// detachSysProcAttr puts the refresh subprocess in its own session so it
|
|
// survives the parent's exit (no controlling terminal, no signal propagation).
|
|
func detachSysProcAttr() *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{Setsid: true}
|
|
}
|