From bcd44e3419e34357a47e54ed30b2091648aabb03 Mon Sep 17 00:00:00 2001
From: LiFeng <lifeng68@huawei.com>
Date: Sat, 12 Jan 2019 03:23:53 -0500
Subject: [PATCH 012/131] Init fifos in lxc_attach_terminal

Signed-off-by: LiFeng <lifeng68@huawei.com>
---
 src/lxc/terminal.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lxc/terminal.c b/src/lxc/terminal.c
index 508e2e67..410f643c 100644
--- a/src/lxc/terminal.c
+++ b/src/lxc/terminal.c
@@ -1341,6 +1341,10 @@ void lxc_terminal_init(struct lxc_terminal *terminal)
 	terminal->peer = -EBADF;
 	terminal->log_fd = -EBADF;
 	lxc_terminal_info_init(&terminal->proxy);
+	/* isulad init console fifos */
+	terminal->init_fifo[0] = NULL;
+	terminal->init_fifo[1] = NULL;
+	lxc_list_init(&terminal->fifos);
 }
 
 /* isulad: judge the fd whether is fifo */
-- 
2.23.0

