[CRIU] [PATCH] page server: Don't hide error from flush request

Pavel Emelyanov xemul at parallels.com
Fri Nov 21 04:23:54 PST 2014


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>

---

diff --git a/page-xfer.c b/page-xfer.c
index 1a1fc00..2f6c673 100644
--- a/page-xfer.c
+++ b/page-xfer.c
@@ -221,6 +221,8 @@ static int page_server_serve(int sk)
 		{
 			int32_t status = 0;
 
+			ret = 0;
+
 			/*
 			 * An answer must be sent back to inform another side,
 			 * that all data were received
@@ -231,7 +233,6 @@ static int page_server_serve(int sk)
 			}
 
 			flushed = true;
-			ret = 0;
 			break;
 		}
 		default:



More information about the CRIU mailing list