fix: solve windows build issue

This commit is contained in:
Adem Baccara
2025-10-08 21:31:47 +01:00
parent 20fb256c29
commit 68dc0163ed
3 changed files with 23 additions and 5 deletions
@@ -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
}