[CRIU] [PATCH] page-server: wait when a socket will be closed only if it isn't external

Andrey Vagin avagin at gmail.com
Mon Sep 28 06:38:17 PDT 2015


From: Andrey Vagin <avagin at openvz.org>

External socket can be used for other purpose.

Reported-by: Adrian Reber <adrian at lisas.de>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 page-xfer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/page-xfer.c b/page-xfer.c
index 7465ed8..e6e64d7 100644
--- a/page-xfer.c
+++ b/page-xfer.c
@@ -257,7 +257,7 @@ static int page_server_serve(int sk)
 		ret = -1;
 	}
 
-	if (ret == 0) {
+	if (ret == 0 && opts.ps_socket == -1) {
 		char c;
 
 		/*
-- 
2.4.3



More information about the CRIU mailing list