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> Upstream-commit: 82dd2c3159993fd32f4a8f27b92699a6287c215a Component: engine
10 lines
123 B
Go
10 lines
123 B
Go
// +build !windows
|
|
|
|
package main
|
|
|
|
import "syscall"
|
|
|
|
func signalDaemonDump(pid int) {
|
|
syscall.Kill(pid, syscall.SIGQUIT)
|
|
}
|