mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f0d277fe84
… and do not use the `docker` cli in it. One of the reason of this move is to not make `integration` package using legacy `integration-cli` package. Next move will be to support swarm within this package *and* provide some helper function using the api (compared to the one using cli in `integration-cli/daemon` package). Signed-off-by: Vincent Demeester <vincent@sbr.pm>
25 lines
583 B
Go
25 lines
583 B
Go
package daemon // import "github.com/docker/docker/internal/test/daemon"
|
|
|
|
import (
|
|
"fmt"
|
|
"strconv"
|
|
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
// SignalDaemonDump sends a signal to the daemon to write a dump file
|
|
func SignalDaemonDump(pid int) {
|
|
ev, _ := windows.UTF16PtrFromString("Global\\docker-daemon-" + strconv.Itoa(pid))
|
|
h2, err := windows.OpenEvent(0x0002, false, ev)
|
|
if h2 == 0 || err != nil {
|
|
return
|
|
}
|
|
windows.PulseEvent(h2)
|
|
}
|
|
|
|
func signalDaemonReload(pid int) error {
|
|
return fmt.Errorf("daemon reload not supported")
|
|
}
|
|
|
|
func cleanupExecRoot(t testingT, execRoot string) {
|
|
}
|