mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
24d11b1533
- Fix circle-ci-cross target - Remove unsupported os/arch targets - Fix dnet build for windows/amd64 - Fix a solaris build breakage Signed-off-by: Alessandro Boch <aboch@docker.com>
19 lines
261 B
Go
19 lines
261 B
Go
package main
|
|
|
|
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()
|
|
}
|
|
}()
|
|
}
|