github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/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 cleanupExecRoot(t testingT, execRoot string) {
    25  }