[CRIU] [PATCH 5/7] sfd: Add logging into fd install

Cyrill Gorcunov gorcunov at openvz.org
Mon May 29 13:15:03 PDT 2017


From: Cyrill Gorcunov <gorcunov at virtuozzo.com>

Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
 criu/util.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/criu/util.c b/criu/util.c
index 34a3acf76531..c607118c42b8 100644
--- a/criu/util.c
+++ b/criu/util.c
@@ -452,6 +452,7 @@ int install_service_fd(enum sfd_type type, int fd)
 		return -1;
 	}
 
+	pr_debug("sfd install %d/%d\n", sfd, type);
 	if (dup3(fd, sfd, O_CLOEXEC) != sfd) {
 		pr_perror("Dup %d -> %d failed", fd, sfd);
 		return -1;
@@ -498,6 +499,7 @@ int clone_service_fd(int id)
 	if (service_fd_id == id)
 		return 0;
 
+	pr_debug("sfd cloning to id %d\n", id);
 	for (i = SERVICE_FD_MIN + 1; i < SERVICE_FD_MAX; i++) {
 		int old = get_service_fd(i);
 		int new = __get_service_fd(i, id);
-- 
2.7.4



More information about the CRIU mailing list