mirror of
https://github.com/ollama/ollama.git
synced 2026-02-19 15:57:07 -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,
|
|
}
|
|
}
|