mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-11-28 15:31:20 +08:00
Fix daemon build on Windows.
This commit is contained in:
parent
5465aceb3e
commit
0ded0b92ec
|
@ -19,7 +19,7 @@ const (
|
|||
DaemonCreationFlags = CREATE_BREAKAWAY_FROM_JOB | CREATE_NEW_PROCESS_GROUP | DETACHED_PROCESS
|
||||
)
|
||||
|
||||
func procAttrForFirstFork() *os.ProcAttr {
|
||||
func procAttrForSpawn() *os.ProcAttr {
|
||||
return &os.ProcAttr{
|
||||
Dir: `C:\`,
|
||||
Env: []string{"SystemRoot=" + os.Getenv("SystemRoot")}, // SystemRoot is needed for net.Listen for some reason
|
||||
|
|
Loading…
Reference in New Issue
Block a user