[CRIU] [PATCH 26/27] mount: print error message if readlinkat failed
Andrey Vagin
avagin at openvz.org
Thu Apr 10 04:04:09 PDT 2014
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
mount.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mount.c b/mount.c
index 6f08761..870c774 100644
--- a/mount.c
+++ b/mount.c
@@ -1812,6 +1812,7 @@ int mntns_collect_root(pid_t pid)
pfd = open_pid_proc(pid);
ret = readlinkat(pfd, "root", path, sizeof(path) - 1);
if (ret < 0) {
+ pr_perror("Unable to read /proc/%d/root", pid);
close_pid_proc();
return ret;
}
--
1.8.5.3
More information about the CRIU
mailing list