Merge pull request #1155 from estesp/ignore-pipe

Ignore SIGPIPE
This commit is contained in:
Michael Crosby 2017-07-11 12:01:39 -07:00 committed by GitHub
commit 1e8c80ae09

View File

@ -20,6 +20,7 @@ var handledSignals = []os.Signal{
unix.SIGINT, unix.SIGINT,
unix.SIGUSR1, unix.SIGUSR1,
unix.SIGCHLD, unix.SIGCHLD,
unix.SIGPIPE,
} }
func handleSignals(ctx context.Context, signals chan os.Signal, server *server.Server) error { func handleSignals(ctx context.Context, signals chan os.Signal, server *server.Server) error {
@ -32,6 +33,8 @@ func handleSignals(ctx context.Context, signals chan os.Signal, server *server.S
} }
case unix.SIGUSR1: case unix.SIGUSR1:
dumpStacks() dumpStacks()
case unix.SIGPIPE:
continue
default: default:
server.Stop() server.Stop()
return nil return nil