gdb: support daemonization on windows

This commit is contained in:
sago35
2021-03-01 08:13:47 +09:00
committed by Ayke
parent dcff8b6478
commit 6e480e189d
2 changed files with 8 additions and 2 deletions
+7 -2
View File
@@ -4,10 +4,15 @@ package main
import (
"os/exec"
"syscall"
"golang.org/x/sys/windows"
)
// setCommandAsDaemon makes sure this command does not receive signals sent to
// the parent. It is unimplemented on Windows.
// the parent.
func setCommandAsDaemon(daemon *exec.Cmd) {
// Not implemented.
daemon.SysProcAttr = &syscall.SysProcAttr{
CreationFlags: windows.DETACHED_PROCESS,
}
}