[CRIU] [PATCH 8/9] tty: collect_one_tty -- Use tty_is_master helper

Cyrill Gorcunov gorcunov at openvz.org
Wed Oct 1 13:52:39 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 43d3e5a24395..89e3d57f5f48 100644
--- a/tty.c
+++ b/tty.c
@@ -974,7 +974,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