[CRIU] [PATCH 05/11] tty: Add some comments about console and bsd terminals

Cyrill Gorcunov gorcunov at openvz.org
Mon Sep 29 09:25:31 PDT 2014


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 tty.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tty.c b/tty.c
index 770056934f28..d50636051603 100644
--- a/tty.c
+++ b/tty.c
@@ -39,7 +39,12 @@
 
 /*
  * Here are some notes about overall TTY c/r design. At moment
- * we support unix98 ptys only.
+ * we support unix98 ptys only and system console. Supporting
+ * legacy BSD terminal is impossible without help from the kernel
+ * side -- the indices of such terminals are not reported anywhere
+ * in the kernel so that we can't figure out active pairs. In case
+ * of system console the situation is simplier, we need only to open
+ * it on restore via traditional /dev/console path.
  *
  * Usually the PTYs represent a pair of links -- master peer and slave
  * peer. Master peer must be opened before slave. Internally, when kernel
-- 
1.9.3



More information about the CRIU mailing list