mirror of
https://github.com/ollama/ollama.git
synced 2026-02-19 15:57:07 -05:00
14 lines
343 B
Go
14 lines
343 B
Go
//go:build !windows
|
|
|
|
package cmd
|
|
|
|
import "syscall"
|
|
|
|
// backgroundServerSysProcAttr returns SysProcAttr for running the server in the background on Unix.
|
|
// Setpgid prevents the server from being killed when the parent process exits.
|
|
func backgroundServerSysProcAttr() *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{
|
|
Setpgid: true,
|
|
}
|
|
}
|