mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f4b08c7f5e
Signed-off-by: John Howard <jhoward@microsoft.com>
21 lines
283 B
Go
21 lines
283 B
Go
// +build !windows
|
|
|
|
package daemon
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
|
|
psignal "github.com/docker/docker/pkg/signal"
|
|
)
|
|
|
|
func setupDumpStackTrap() {
|
|
c := make(chan os.Signal, 1)
|
|
signal.Notify(c, syscall.SIGUSR1)
|
|
go func() {
|
|
for range c {
|
|
psignal.DumpStacks()
|
|
}
|
|
}()
|
|
}
|