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

Cyrill Gorcunov gorcunov at openvz.org
Wed Sep 12 02:58:23 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.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-restore.c      |    2 +-
 files.c           |   27 ++++++++++++++++++-
 include/crtools.h |    1 +
 include/files.h   |    2 +-
 include/pstree.h  |    1 +
 include/tty.h     |    1 +
 tty.c             |   75 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 106 insertions(+), 3 deletions(-)

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


More information about the CRIU mailing list