File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ require (
9
9
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf
10
10
github.com/marcinbor85/gohex v0.0.0-20200531091804-343a4b548892
11
11
go.bug.st/serial v1.1.2
12
+ golang.org/x/sys v0.0.0-20210113181707-4bcb84eeeb78
12
13
golang.org/x/tools v0.0.0-20200216192241-b320d3a0f5a2
13
14
tinygo.org/x/go-llvm v0.0.0-20210206225315-7fe719483a0f
14
15
)
Original file line number Diff line number Diff line change @@ -4,10 +4,15 @@ package main
4
4
5
5
import (
6
6
"os/exec"
7
+ "syscall"
8
+
9
+ "golang.org/x/sys/windows"
7
10
)
8
11
9
12
// setCommandAsDaemon makes sure this command does not receive signals sent to
10
- // the parent. It is unimplemented on Windows.
13
+ // the parent.
11
14
func setCommandAsDaemon (daemon * exec.Cmd ) {
12
- // Not implemented.
15
+ daemon .SysProcAttr = & syscall.SysProcAttr {
16
+ CreationFlags : windows .DETACHED_PROCESS ,
17
+ }
13
18
}
You can’t perform that action at this time.
0 commit comments