[CRIU] [PATCH 5/5] tty: Add restoration of controlling terminal v2

Cyrill Gorcunov gorcunov at openvz.org
Wed Sep 12 07:07:54 EDT 2012


The idea behind is pretty simple -- once we find
that there is a controlling terminal present we
do call ioctl on appropriate /dev/pts/N.

v2:
 - restore control terminals via service fd,
   still need to speedup service fd retrieval.
 - use prepare_ctl_tty() helper to generate
   control terminal fdinfo entry

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-restore.c      |    6 ++++
 files.c           |   31 ++++++++++++++++++++++++
 include/crtools.h |    1 +
 include/files.h   |    1 +
 include/pstree.h  |    1 +
 include/tty.h     |    1 +
 tty.c             |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 108 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-tty-Add-restoration-of-controlling-terminal-v2.patch
Type: text/x-patch
Size: 5289 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120912/4b7e459e/0005-tty-Add-restoration-of-controlling-terminal-v2.bin


More information about the CRIU mailing list