Merge pull request #21333 from cpuguy83/sigpipe

Don't forward SIGPIPE from client to container
This commit is contained in:
Antonio Murdaca 2016-03-21 15:09:13 +01:00
commit 3e73c9ab2c
2 changed files with 3 additions and 0 deletions

View file

@ -14,6 +14,8 @@ const (
SIGCHLD = syscall.SIGCHLD
// SIGWINCH is a signal sent to a process when its controlling terminal changes its size
SIGWINCH = syscall.SIGWINCH
// SIGPIPE is a signal sent to a process when a pipe is written to before the other end is open for reading
SIGPIPE = syscall.SIGPIPE
// DefaultStopSignal is the syscall signal used to stop a container in unix systems.
DefaultStopSignal = "SIGTERM"
)

View file

@ -11,6 +11,7 @@ import (
const (
SIGCHLD = syscall.Signal(0xff)
SIGWINCH = syscall.Signal(0xff)
SIGPIPE = syscall.Signal(0xff)
// DefaultStopSignal is the syscall signal used to stop a container in windows systems.
DefaultStopSignal = "15"
)