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

restore: More detailed log on shmem restore

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Cyrill Gorcunov
2012-01-01 13:18:42 +04:00
parent a03e3622f2
commit 80492c78e6

View File

@@ -148,13 +148,13 @@ static int shmem_wait_and_open(struct shmem_info *si)
char path[128];
int ret;
cr_wait_until(&si->lock, 1);
sprintf(path, "/proc/%d/map_files/%lx-%lx",
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);
if (ret >= 0)
return ret;