[CRIU] [PATCH 08/24] parasite: use a propper command for getting ack

Andrey Vagin avagin at openvz.org
Wed May 22 16:08:09 EDT 2013


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 parasite-syscall.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/parasite-syscall.c b/parasite-syscall.c
index fc9375e..7276abf 100644
--- a/parasite-syscall.c
+++ b/parasite-syscall.c
@@ -655,7 +655,10 @@ int parasite_get_proc_fd_seized(struct parasite_ctl *ctl)
 	fd = recv_fd(ctl->tsock);
 	if (fd < 0)
 		pr_err("Can't retrieve FD from socket\n");
-	__parasite_execute_daemon_wait_ack(PARASITE_CMD_DRAIN_FDS, ctl, ctl->pid.real);
+	if (__parasite_execute_daemon_wait_ack(PARASITE_CMD_GET_PROC_FD, ctl, ctl->pid.real)) {
+		close(fd);
+		return -1;
+	}
 
 	return fd;
 }
-- 
1.8.2



More information about the CRIU mailing list