mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 16:28:06 +08:00
15 lines
176 B
Go
15 lines
176 B
Go
// +build !windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"os/exec"
|
|
"syscall"
|
|
)
|
|
|
|
func init() {
|
|
setupOpt = func(cmd *exec.Cmd) {
|
|
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true}
|
|
}
|
|
}
|