[CRIU] [PATCH 1/4] tty: Prepare some members for tty merge

Cyrill Gorcunov gorcunov at openvz.org
Tue Sep 4 06:02:32 EDT 2012


This commit introduce some service members
which will be used in future commit. This is
done to simplify overall patching procedure
and bisection.

In particular, we introduce

 - TTY file type, we will need to to describe
   tty file entries

 - CTL_TTY_OFF service fd. This fd will help us
   to create control terminal. We need a special fd
   number for it, because control terminal is to be
   restored in context of a process which sid matches
   the terminal has.

 - ctl_tty_id, this id will carry the control terminal
   id bound to the process which sid matches. The key is
   the following: CTL_TTY_OFF fd stacked on process item
   which has ctl_tty_id set thus file engine will restore
   contol terminal in proper task context.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/crtools.h     |    1 +
 include/pstree.h      |    1 +
 protobuf/fdinfo.proto |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tty-Prepare-some-members-for-tty-merge.patch
Type: text/x-patch
Size: 893 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120904/85b4c73a/0001-tty-Prepare-some-members-for-tty-merge.bin


More information about the CRIU mailing list