github.com/LazyboyChen7/engine@v17.12.1-ce-rc2+incompatible/integration-cli/daemon/daemon_windows.go (about) 1 package daemon 2 3 import ( 4 "fmt" 5 "strconv" 6 7 "github.com/go-check/check" 8 "golang.org/x/sys/windows" 9 ) 10 11 // SignalDaemonDump sends a signal to the daemon to write a dump file 12 func SignalDaemonDump(pid int) { 13 ev, _ := windows.UTF16PtrFromString("Global\\docker-daemon-" + strconv.Itoa(pid)) 14 h2, err := windows.OpenEvent(0x0002, false, ev) 15 if h2 == 0 || err != nil { 16 return 17 } 18 windows.PulseEvent(h2) 19 } 20 21 func signalDaemonReload(pid int) error { 22 return fmt.Errorf("daemon reload not supported") 23 } 24 25 func cleanupExecRoot(c *check.C, execRoot string) { 26 }