[CRIU] [PATCH 08/11] tty: collect_one_tty -- Use tty_is_master helper
Cyrill Gorcunov
gorcunov at openvz.org
Mon Oct 6 06:15:47 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 d149c51d8d3a..355e679df9e2 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