mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-01 08:42:55 +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
|
DaemonCreationFlags = CREATE_BREAKAWAY_FROM_JOB | CREATE_NEW_PROCESS_GROUP | DETACHED_PROCESS
|
||||||
)
|
)
|
||||||
|
|
||||||
func procAttrForFirstFork() *os.ProcAttr {
|
func procAttrForSpawn() *os.ProcAttr {
|
||||||
return &os.ProcAttr{
|
return &os.ProcAttr{
|
||||||
Dir: `C:\`,
|
Dir: `C:\`,
|
||||||
Env: []string{"SystemRoot=" + os.Getenv("SystemRoot")}, // SystemRoot is needed for net.Listen for some reason
|
Env: []string{"SystemRoot=" + os.Getenv("SystemRoot")}, // SystemRoot is needed for net.Listen for some reason
|
||||||
|
|
Loading…
Reference in New Issue
Block a user