mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 06:45:35 +00:00
tty: Fixup error message in dump_pty_info()
The sid may be present not only on slave peer so fix up the message. Also extend it showing peer type. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
f8fa75ae86
commit
84da534261
5
tty.c
5
tty.c
@@ -964,9 +964,10 @@ static int dump_pty_info(int lfd, u32 id, const struct fd_parms *p, int major, i
|
|||||||
struct pstree_item *item = find_first_sid(pti->sid);
|
struct pstree_item *item = find_first_sid(pti->sid);
|
||||||
if (!item || item->pid.virt != pti->sid) {
|
if (!item || item->pid.virt != pti->sid) {
|
||||||
if (!opts.shell_job) {
|
if (!opts.shell_job) {
|
||||||
pr_err("Found sid %d pgid %d on slave peer fd %d. "
|
pr_err("Found sid %d pgid %d (%s) on peer fd %d. "
|
||||||
"Missing option?\n",
|
"Missing option?\n",
|
||||||
pti->sid, pti->pgrp, p->fd);
|
pti->sid, pti->pgrp,
|
||||||
|
tty_type(major), p->fd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user