mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
restore: More detailed log on shmem restore
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
@@ -148,13 +148,13 @@ static int shmem_wait_and_open(struct shmem_info *si)
|
|||||||
char path[128];
|
char path[128];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
cr_wait_until(&si->lock, 1);
|
|
||||||
|
|
||||||
sprintf(path, "/proc/%d/map_files/%lx-%lx",
|
sprintf(path, "/proc/%d/map_files/%lx-%lx",
|
||||||
si->real_pid, si->start, si->end);
|
si->real_pid, si->start, si->end);
|
||||||
|
|
||||||
pr_info("Waiting for [%s] to appear\n", path);
|
pr_info("%d: Waiting for [%s] to appear\n", getpid(), path);
|
||||||
|
cr_wait_until(&si->lock, 1);
|
||||||
|
|
||||||
|
pr_info("%d: Opening shmem [%s] \n", si->real_pid, path);
|
||||||
ret = open(path, O_RDWR);
|
ret = open(path, O_RDWR);
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user