[lxc-devel] [lxc/master] attach: init struct

brauner on Github lxc-bot at linuxcontainers.org
Sat Jan 20 11:57:57 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180120/080e6bb3/attachment.bin>
-------------- next part --------------
From 3ce6603a324eca4e724121753daa0ebce6b36dfe Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Sat, 20 Jan 2018 12:57:12 +0100
Subject: [PATCH] attach: init struct

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/attach.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lxc/attach.c b/src/lxc/attach.c
index 34bdf9145..2d167d63e 100644
--- a/src/lxc/attach.c
+++ b/src/lxc/attach.c
@@ -1269,6 +1269,8 @@ int lxc_attach(const char *name, const char *lxcpath,
 		}
 
 		pty.log_fd = options->log_fd;
+	} else {
+		lxc_pty_init(&pty);
 	}
 
 	/* Create a socket pair for IPC communication; set SOCK_CLOEXEC in order


More information about the lxc-devel mailing list