Files
lazyssh/internal/core/services/sysprocattr_unix.go
T

12 lines
279 B
Go

//go:build !windows
package services
import "syscall"
// setDetach configures SysProcAttr to detach the process on non-Windows platforms.
func setDetach(attr *syscall.SysProcAttr) {
// On Unix-like systems, Setsid creates a new session to fully detach.
attr.Setsid = true
}