The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2519

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
We should use a buffered channel since we might miss signals otherwise.

Signed-off-by: Christian Brauner <christian.brau...@canonical.com>
From e7ea5814d36de412da25f92de67802f0bc36fd2d Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@canonical.com>
Date: Tue, 18 Oct 2016 10:42:04 +0200
Subject: [PATCH] lxc/exec_unix: use buffered chan in sig forwarding

We should use a buffered channel since we might miss signals otherwise.

Signed-off-by: Christian Brauner <christian.brau...@canonical.com>
---
 lxc/exec_unix.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxc/exec_unix.go b/lxc/exec_unix.go
index c527549..d804878 100644
--- a/lxc/exec_unix.go
+++ b/lxc/exec_unix.go
@@ -19,7 +19,7 @@ func (c *execCmd) getStdout() io.WriteCloser {
 }
 
 func (c *execCmd) controlSocketHandler(d *lxd.Client, control *websocket.Conn) 
{
-       ch := make(chan os.Signal)
+       ch := make(chan os.Signal, 3)
        signal.Notify(ch,
                syscall.SIGWINCH,
                syscall.SIGTERM,
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to