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