[CRIU] [PATCH 15/16] mount: print error message if readlinkat failed
Andrey Vagin
avagin at openvz.org
Tue Apr 8 16:35:07 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 a6819f3..bcc89cd 100644
--- a/mount.c
+++ b/mount.c
@@ -1802,6 +1802,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