From 353fbd8586e4b552e0e5f08b30863927be1f42b3 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Fri, 18 Mar 2016 16:50:18 -0400 Subject: [PATCH] Don't forward SIGPIPE from client to container Signed-off-by: Brian Goff --- signal/signal_unix.go | 2 ++ signal/signal_windows.go | 1 + 2 files changed, 3 insertions(+) diff --git a/signal/signal_unix.go b/signal/signal_unix.go index d4fea93..6621d37 100644 --- a/signal/signal_unix.go +++ b/signal/signal_unix.go @@ -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" ) diff --git a/signal/signal_windows.go b/signal/signal_windows.go index c80a951..698cbf2 100644 --- a/signal/signal_windows.go +++ b/signal/signal_windows.go @@ -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" )