mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4918769b1a
Allow attach from `docker start` Add host integration script generation Update doc with host integration
44 lines
720 B
Go
44 lines
720 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
)
|
|
|
|
func CatchAll(sigc chan os.Signal) {
|
|
signal.Notify(sigc,
|
|
syscall.SIGABRT,
|
|
syscall.SIGALRM,
|
|
syscall.SIGBUS,
|
|
syscall.SIGCHLD,
|
|
syscall.SIGCONT,
|
|
syscall.SIGEMT,
|
|
syscall.SIGFPE,
|
|
syscall.SIGHUP,
|
|
syscall.SIGILL,
|
|
syscall.SIGINFO,
|
|
syscall.SIGINT,
|
|
syscall.SIGIO,
|
|
syscall.SIGIOT,
|
|
syscall.SIGKILL,
|
|
syscall.SIGPIPE,
|
|
syscall.SIGPROF,
|
|
syscall.SIGQUIT,
|
|
syscall.SIGSEGV,
|
|
syscall.SIGSTOP,
|
|
syscall.SIGSYS,
|
|
syscall.SIGTERM,
|
|
syscall.SIGTRAP,
|
|
syscall.SIGTSTP,
|
|
syscall.SIGTTIN,
|
|
syscall.SIGTTOU,
|
|
syscall.SIGURG,
|
|
syscall.SIGUSR1,
|
|
syscall.SIGUSR2,
|
|
syscall.SIGVTALRM,
|
|
syscall.SIGWINCH,
|
|
syscall.SIGXCPU,
|
|
syscall.SIGXFSZ,
|
|
)
|
|
}
|