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:
8
tty.c
8
tty.c
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user