mirror of
https://github.com/Adembc/lazyssh.git
synced 2026-07-14 12:13:34 +02:00
fix: solve windows build issue
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//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
|
||||
}
|
||||
Reference in New Issue
Block a user