Only create a buffered channel of one

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-05-13 17:11:22 -07:00
parent 30f1006b33
commit 3fc929f350
1 changed files with 1 additions and 1 deletions

View File

@ -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)