[CRIU] [PATCH] tty: Deprecate no-regfile entry case
Pavel Emelyanov
xemul at virtuozzo.com
Thu Sep 1 09:08:34 PDT 2016
TTY files carry link on regfile entry since 1.4 (commit caa64d97)
Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
criu/tty.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/criu/tty.c b/criu/tty.c
index 3eda281..b152685 100644
--- a/criu/tty.c
+++ b/criu/tty.c
@@ -1541,6 +1541,9 @@ static int collect_one_tty(void *obj, ProtobufCMessage *msg, struct cr_img *i)
*/
info->reg_d = try_collect_special_file(info->tfe->id, 1);
if (!info->reg_d) {
+ if (!deprecated_ok("TTY w/o regfile"))
+ return -1;
+
if (is_pty(info->driver)) {
info->reg_d = pty_alloc_reg(info, true);
if (!info->reg_d) {
--
2.5.0
More information about the CRIU
mailing list