2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

parasite: Print error code in parasite_dump_tty

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2012-11-06 18:18:31 +04:00
committed by Pavel Emelyanov
parent 5e8816796b
commit bbf33fa68f

View File

@@ -424,7 +424,7 @@ static inline int tty_ioctl(int fd, int cmd, int *arg)
ret = sys_ioctl(fd, cmd, (unsigned long)arg);
if (ret < 0) {
if (ret != -ENOTTY)
return -1;
return ret;
*arg = 0;
}
return 0;
@@ -471,7 +471,7 @@ static int parasite_dump_tty(struct parasite_tty_args *args)
err:
if (ret != -EIO) {
pr_err("TTY: Can't get sid/pgrp\n");
pr_err("TTY: Can't get sid/pgrp: %d\n", ret);
return -1;
}