tty: Rework tty_find_restoring_task
It's being found that we fail to restore tasks which are not session leaders but have controlling terminals. This patch reworks tty_find_restoring_task logic to fix the problem. The problem itself basically was the following -- in case if there no sid present even on master peer or on both master/slave peers, we were trying to find a restoring task, and that's wrong since we have peers which do not belong our session. #2409 Reported-by:Andrey Vagin <avagin@openvz.org> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
Showing
Please
register
or
sign in
to comment