fn: dind SIGINT and SIGCHLD changes (#771)

1) in dind, prevent SIGINT reaching to dockerd. This kills
docker and prevents shutdown as fn server is trying to stop.
2) as init process, always reap child processes.
This commit is contained in:
Tolga Ceylan
2018-02-13 19:46:53 -08:00
committed by GitHub
parent f01b502bc7
commit c132cf1825
3 changed files with 39 additions and 1 deletions

View File

@@ -394,6 +394,8 @@ func (s *Server) startGears(ctx context.Context, cancel context.CancelFunc) {
logrus.WithField("type", s.nodeType).Infof("Fn serving on `%v`", listen)
installChildReaper()
server := http.Server{
Addr: listen,
Handler: s.Router,