1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/integration-cli/daemon_unix.go
Brian Goff 82dd2c3159 Make test suites dump daemon stack on test timeout
Use `OnTimeout` callback on test timeouts to trigger a stack dump for
running daemons. This will help analyze stuck tests.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-08-10 10:26:30 -04:00

9 lines
123 B
Go

// +build !windows
package main
import "syscall"
func signalDaemonDump(pid int) {
syscall.Kill(pid, syscall.SIGQUIT)
}