mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ad10ae9b3b
Remove all dependencies to engine-api and start using docker/docker/api. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
19 lines
263 B
Go
19 lines
263 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("")
|
|
}
|
|
}()
|
|
}
|