From 31d776b3505e23284341849a5294b133cffa7910 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 13 May 2016 17:11:22 -0700 Subject: [PATCH] Only create a buffered channel of one Signed-off-by: Michael Crosby --- libcontainer/factory_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/factory_linux.go b/libcontainer/factory_linux.go index d3d63862350..4f1ec78cd9c 100644 --- a/libcontainer/factory_linux.go +++ b/libcontainer/factory_linux.go @@ -221,7 +221,7 @@ func (l *LinuxFactory) Type() string { // This is a low level implementation detail of the reexec and should not be consumed externally func (l *LinuxFactory) StartInitialization() (err error) { // start the signal handler as soon as we can - s := make(chan os.Signal, 1024) + s := make(chan os.Signal, 1) signal.Notify(s, syscall.SIGCONT) fdStr := os.Getenv("_LIBCONTAINER_INITPIPE") pipefd, err := strconv.Atoi(fdStr)