2016-12-09 10:17:53 +01:00
|
|
|
package daemon
|
2016-07-27 14:17:44 -04:00
|
|
|
|
|
|
|
import (
|
2016-07-28 11:58:06 -04:00
|
|
|
"fmt"
|
2016-07-27 14:17:44 -04:00
|
|
|
"strconv"
|
2016-08-23 16:50:15 -07:00
|
|
|
|
|
|
|
"github.com/go-check/check"
|
2016-11-21 14:35:06 -08:00
|
|
|
"golang.org/x/sys/windows"
|
2016-07-27 14:17:44 -04:00
|
|
|
)
|
|
|
|
|
2016-12-09 10:17:53 +01:00
|
|
|
// SignalDaemonDump sends a signal to the daemon to write a dump file
|
|
|
|
func SignalDaemonDump(pid int) {
|
2017-08-21 12:58:09 +02:00
|
|
|
ev, _ := windows.UTF16PtrFromString("Global\\docker-daemon-" + strconv.Itoa(pid))
|
|
|
|
h2, err := windows.OpenEvent(0x0002, false, ev)
|
|
|
|
if h2 == 0 || err != nil {
|
2016-07-27 14:17:44 -04:00
|
|
|
return
|
|
|
|
}
|
2017-08-21 12:58:09 +02:00
|
|
|
windows.PulseEvent(h2)
|
2016-07-27 14:17:44 -04:00
|
|
|
}
|
2016-07-28 11:58:06 -04:00
|
|
|
|
|
|
|
func signalDaemonReload(pid int) error {
|
|
|
|
return fmt.Errorf("daemon reload not supported")
|
|
|
|
}
|
2016-08-23 16:50:15 -07:00
|
|
|
|
|
|
|
func cleanupExecRoot(c *check.C, execRoot string) {
|
|
|
|
}
|