[CRIU] [PATCH 12/19] compel: plugins, std -- Use sys_recvfrom instead of recv

Cyrill Gorcunov gorcunov at openvz.org
Wed Sep 21 13:54:27 PDT 2016


From: Dmitry Safonov <dsafonov at virtuozzo.com>

prologue.h defines sys_recv() macro - let's use it by now

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 compel/plugins/std/std.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compel/plugins/std/std.c b/compel/plugins/std/std.c
index 19090d7f7a18..6894a6921336 100644
--- a/compel/plugins/std/std.c
+++ b/compel/plugins/std/std.c
@@ -40,7 +40,7 @@ static int fini_socket(void)
 	if (ret)
 		goto err;
 
-	ret = sys_recvfrom(ctl_socket, buf, sizeof(buf), MSG_WAITALL, 0, 0);
+	ret = sys_recv(ctl_socket, buf, sizeof(buf), MSG_WAITALL);
 	if (ret)
 		goto err;
 err:
-- 
2.7.4



More information about the CRIU mailing list