mirror of
https://github.com/Adembc/lazyssh.git
synced 2026-07-14 12:13:34 +02:00
12 lines
279 B
Go
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
|
|
}
|