[CRIU] [PATCH 10/11] tty: collect_one_tty -- Use tty_is_master helper

Cyrill Gorcunov gorcunov at openvz.org
Mon Sep 29 09:25:36 PDT 2014


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tty.c b/tty.c
index f84dcfc9119c..07889a6ec605 100644
--- a/tty.c
+++ b/tty.c
@@ -979,7 +979,7 @@ static int collect_one_tty(void *obj, ProtobufCMessage *msg)
 	INIT_LIST_HEAD(&info->sibling);
 	info->major = major(info->tie->rdev);
 	info->minor = minor(info->tie->rdev);
-	info->create = (info->major == TTYAUX_MAJOR);
+	info->create = tty_is_master(info);
 	info->inherit = false;
 
 	if (verify_info(info))
-- 
1.9.3



More information about the CRIU mailing list