Skip to content

Commit

Permalink
Merge pull request #1104 from runcom/notify-sigpipe
Browse files Browse the repository at this point in the history
containerd: main: notify on SIGPIPE
  • Loading branch information
crosbymichael committed Jun 30, 2017
2 parents d3878e1 + 6a7b7d2 commit c8ad94a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions containerd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ import (
"google.golang.org/grpc/health/grpc_health_v1"

"github.com/Sirupsen/logrus"
"github.com/urfave/cli"
"github.com/cyberdelia/go-metrics-graphite"
"github.com/containerd/containerd"
grpcserver "github.com/containerd/containerd/api/grpc/server"
"github.com/containerd/containerd/api/grpc/types"
"github.com/containerd/containerd/api/http/pprof"
"github.com/containerd/containerd/supervisor"
"github.com/cyberdelia/go-metrics-graphite"
"github.com/docker/docker/pkg/listeners"
"github.com/rcrowley/go-metrics"
"github.com/urfave/cli"
)

const (
Expand Down Expand Up @@ -174,7 +174,7 @@ func daemon(context *cli.Context) error {
return err
}
s := make(chan os.Signal, 2048)
signal.Notify(s, syscall.SIGTERM, syscall.SIGINT)
signal.Notify(s, syscall.SIGTERM, syscall.SIGINT, syscall.SIGPIPE)
// Split the listen string of the form proto://addr
listenSpec := context.String("listen")
listenParts := strings.SplitN(listenSpec, "://", 2)
Expand Down

0 comments on commit c8ad94a

Please sign in to comment.