Commit bc5fcaa7 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

tty: collect_one_tty -- Use tty_is_master helper

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 87418490
...@@ -974,7 +974,7 @@ static int collect_one_tty(void *obj, ProtobufCMessage *msg) ...@@ -974,7 +974,7 @@ static int collect_one_tty(void *obj, ProtobufCMessage *msg)
INIT_LIST_HEAD(&info->sibling); INIT_LIST_HEAD(&info->sibling);
info->major = major(info->tie->rdev); info->major = major(info->tie->rdev);
info->create = (info->major == TTYAUX_MAJOR); info->create = tty_is_master(info);
info->inherit = false; info->inherit = false;
if (verify_info(info)) if (verify_info(info))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment