2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

tty: Handle tty collecting error

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-09-14 18:24:43 +04:00
parent 990f80dd0f
commit cc87632f16

8
tty.c
View File

@@ -842,10 +842,10 @@ int collect_tty(void)
ret = collect_image(CR_FD_TTY_INFO, PB_TTY_INFO, ret = collect_image(CR_FD_TTY_INFO, PB_TTY_INFO,
sizeof(struct tty_info_entry), sizeof(struct tty_info_entry),
collect_one_tty_info_entry); collect_one_tty_info_entry);
if (!ret)
ret = collect_image(CR_FD_TTY, PB_TTY, ret = collect_image(CR_FD_TTY, PB_TTY,
sizeof(struct tty_info), sizeof(struct tty_info),
collect_one_tty); collect_one_tty);
return ret; return ret;
} }