mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-10-26 22:09:56 -04:00
Fix compilation for Windows
This commit is contained in:
1 parent
a0f21b31f7
commit
bc793178e1
23 files changed
+23
-6
No files matched your search
+1
-2
@@ -6,7 +6,6 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/rwinkhart/go-boilerplate/back"
|
||||
"github.com/rwinkhart/libmutton/global"
|
||||
@@ -85,7 +84,7 @@ func launchRCWDProcess() []byte {
|
||||
|
||||
if Daemonize {
|
||||
cmd := exec.Command(os.Args[0], "startrcwd")
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true}
|
||||
cmd.SysProcAttr = global.GetSysProcAttr()
|
||||
_ = back.WriteToStdin(cmd, string(password))
|
||||
_ = cmd.Start()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user