Commit d50f0e90 authored by Andrei Vagin's avatar Andrei Vagin Committed by Andrei Vagin

files: print an error if fdinfo can't be opened

Without this message, we don't know which fdinfo can't be opened.

https://github.com/xemul/criu/issues/390Signed-off-by: 's avatarAndrei Vagin <avagin@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent ee7d3bec
......@@ -1103,8 +1103,11 @@ static int open_fdinfos(struct pstree_item *me)
st = fle->stage;
BUG_ON(st == FLE_RESTORED);
ret = open_fd(fle);
if (ret == -1)
if (ret == -1) {
pr_err("Unable to open fd=%d id=%#x\n",
fle->fe->fd, fle->fe->id);
goto splice;
}
if (st != fle->stage || ret == 0)
progress = true;
if (ret == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment