mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
So using "ctrld stop" or service manager to stop ctrld will end up with the same result, stopped ctrld with a working DNS, and deactivation pin code will always have effects if set.
13 lines
281 B
Go
13 lines
281 B
Go
//go:build !windows
|
|
|
|
package cli
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// sysProcAttrForDetachedChildProcess returns *syscall.SysProcAttr instance for running a detached child command.
|
|
func sysProcAttrForDetachedChildProcess() *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{Setsid: true}
|
|
}
|