Commit 8c1807ab authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

tty: Add some comments in tty_find_restoring_task

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 371caf2f
...@@ -707,7 +707,11 @@ static int tty_find_restoring_task(struct tty_info *info) ...@@ -707,7 +707,11 @@ static int tty_find_restoring_task(struct tty_info *info)
return 0; return 0;
} }
/*
* We can only inherit one slave peer.
*/
if (opts.shell_job && !pty_is_master(info)) { if (opts.shell_job && !pty_is_master(info)) {
pr_info("Inherit terminal for id %x\n", info->tfe->id);
info->tie->sid = info->tie->pgrp = INHERIT_SID; info->tie->sid = info->tie->pgrp = INHERIT_SID;
return 0; return 0;
} }
......
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