mirror of
https://github.com/ollama/ollama.git
synced 2026-03-09 03:12:11 -05:00
13 lines
355 B
Go
13 lines
355 B
Go
package cmd
|
|
|
|
import "syscall"
|
|
|
|
// backgroundServerSysProcAttr returns SysProcAttr for running the server in the background on Windows.
|
|
// CREATE_NO_WINDOW (0x08000000) prevents a console window from appearing.
|
|
func backgroundServerSysProcAttr() *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{
|
|
CreationFlags: 0x08000000,
|
|
HideWindow: true,
|
|
}
|
|
}
|