Files
2026-07-01 00:47:28 +08:00

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}
}