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

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) ===
Signed-off-by: Christian Brauner <[email protected]>
From 1f9bbd230c774570826c96101b9382802d809caf Mon Sep 17 00:00:00 2001
From: Christian Brauner <[email protected]>
Date: Mon, 4 Sep 2017 14:35:02 +0200
Subject: [PATCH] conf: don't send ttys when none are configured

Signed-off-by: Christian Brauner <[email protected]>
---
 src/lxc/conf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index f5922377b..4e304830e 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -3072,6 +3072,9 @@ static int lxc_send_ttys_to_parent(struct lxc_handler 
*handler)
        int sock = handler->data_sock[0];
        int ret = -1;
 
+       if (!conf->tty)
+               return 0;
+
        for (i = 0; i < conf->tty; i++) {
                int ttyfds[2];
                struct lxc_pty_info *pty_info = &tty_info->pty_info[i];
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to