[CRIU] [PATCH 12/14] tty: Make tty_get_sid_pgrp() to use parasite code

Cyrill Gorcunov gorcunov at openvz.org
Mon Oct 15 10:54:55 EDT 2012


We need to use namespace local sid/pgid parameters
assigned on tty link, thus use parasite helper.

Otherwise we might fail on restore. This patch as
well takes into account if user asked to migrate
the tty connection.

Basically the idea is simple -- if we have some
tty peer with some SID and the SID is not presented
in our pstree -- we either were asked to migrate,
either user typed a wrong PID and we can't continue.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 tty.c |   78 ++++++++++++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 56 insertions(+), 22 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-tty-Make-tty_get_sid_pgrp-to-use-parasite-code.patch
Type: text/x-patch
Size: 2710 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20121015/12c788a5/0012-tty-Make-tty_get_sid_pgrp-to-use-parasite-code-0001.bin


More information about the CRIU mailing list