mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-02 06:43:00 +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:
parent
5e8816796b
commit
bbf33fa68f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue